Mark implicit "this" argument as an artificial argument.

llvm-svn: 95673
This commit is contained in:
Devang Patel 2010-02-09 17:57:50 +00:00
parent ad1aa86276
commit cce7e85165
1 changed files with 4 additions and 1 deletions

View File

@ -546,7 +546,10 @@ CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method,
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)