]> granicus.if.org Git - clang/commitdiff
Revert 108220 and subsequent patch.
authorDevang Patel <dpatel@apple.com>
Thu, 15 Jul 2010 18:16:09 +0000 (18:16 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 15 Jul 2010 18:16:09 +0000 (18:16 +0000)
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
test/CodeGenCXX/member-qual-debug-info.cpp [deleted file]

index 4e158955f894bf78567e7dd36c2c04864021e19a..513a1fe5eff32753fb4713c7fa1cfd863d25c233 100644 (file)
@@ -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 (file)
index c6e0991..0000000
+++ /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{
-}