Author: dpatel
Date: Tue Feb  9 11:57:50 2010
New Revision: 95673

URL: http://llvm.org/viewvc/llvm-project?rev=95673&view=rev
Log:
Mark  implicit "this" argument as an artificial argument.

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=95673&r1=95672&r2=95673&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Tue Feb  9 11:57:50 2010
@@ -546,7 +546,10 @@
   ASTContext &Context = CGM.getContext();
   QualType ThisPtr = 
     Context.getPointerType(Context.getTagDeclType(Method->getParent()));
-  Elts.push_back(getOrCreateType(ThisPtr, Unit));
+  llvm::DIType ThisPtrType = 
+    DebugFactory.CreateArtificialType(getOrCreateType(ThisPtr, Unit));
+  TypeCache[ThisPtr.getAsOpaquePtr()] = ThisPtrType.getNode();  
+  Elts.push_back(ThisPtrType);
 
   // Copy rest of the arguments.
   for (unsigned i = 1, e = Args.getNumElements(); i != e; ++i)


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to