From db30c0f5cfcda4483bf4d2a02d6a94289984a4a9 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Thu, 15 Jul 2010 18:16:09 +0000 Subject: [PATCH] Revert 108220 and subsequent patch. This is not required (I am not 100% sure why) but method.exp from gdb testsuite flagged regression due to this patch. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108434 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 12 ------------ test/CodeGenCXX/member-qual-debug-info.cpp | 20 -------------------- 2 files changed, 32 deletions(-) delete mode 100644 test/CodeGenCXX/member-qual-debug-info.cpp diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 4e158955f8..513a1fe5ef 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -537,18 +537,6 @@ CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method, llvm::DIType ThisPtrType = DebugFactory.CreateArtificialType(getOrCreateType(ThisPtr, Unit)); - unsigned Quals = Method->getTypeQualifiers(); - if (Quals & Qualifiers::Const) - ThisPtrType = - DebugFactory.CreateDerivedType(llvm::dwarf::DW_TAG_const_type, - Unit, "", Unit, - 0, 0, 0, 0, 0, ThisPtrType); - if (Quals & Qualifiers::Volatile) - ThisPtrType = - DebugFactory.CreateDerivedType(llvm::dwarf::DW_TAG_volatile_type, - Unit, "", Unit, - 0, 0, 0, 0, 0, ThisPtrType); - TypeCache[ThisPtr.getAsOpaquePtr()] = ThisPtrType; Elts.push_back(ThisPtrType); diff --git a/test/CodeGenCXX/member-qual-debug-info.cpp b/test/CodeGenCXX/member-qual-debug-info.cpp deleted file mode 100644 index c6e0991eea..0000000000 --- a/test/CodeGenCXX/member-qual-debug-info.cpp +++ /dev/null @@ -1,20 +0,0 @@ -// RUN: %clang_cc1 -g -S -masm-verbose -x c++ -o %t %s -// RUN: grep DW_TAG_volatile_type %t | count 3 -// RUN: grep DW_TAG_const_type %t | count 3 -// one for decl, one for def, one for abbrev - -namespace A { - class B { - public: - void dump() const volatile; - }; -} - -int main () { - using namespace A; - B b; - return 0; -} - -void A::B::dump() const volatile{ -} -- 2.40.0