[cfe-commits] r108434 - in /cfe/trunk: lib/CodeGen/CGDebugInfo.cpp test/CodeGenCXX/member-qual-debug-info.cpp

Devang Patel dpatel at apple.com
Thu Jul 15 11:16:10 PDT 2010


Author: dpatel
Date: Thu Jul 15 13:16:09 2010
New Revision: 108434

URL: http://llvm.org/viewvc/llvm-project?rev=108434&view=rev
Log:
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.

Removed:
    cfe/trunk/test/CodeGenCXX/member-qual-debug-info.cpp
Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=108434&r1=108433&r2=108434&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Thu Jul 15 13:16:09 2010
@@ -537,18 +537,6 @@
   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);
 

Removed: cfe/trunk/test/CodeGenCXX/member-qual-debug-info.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/member-qual-debug-info.cpp?rev=108433&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/member-qual-debug-info.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/member-qual-debug-info.cpp (removed)
@@ -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{
-}





More information about the cfe-commits mailing list