diff options
author | Devang Patel <dpatel@apple.com> | 2010-02-09 17:57:50 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-02-09 17:57:50 +0000 |
commit | cce7e85165b9d5cc6afd3e6c3d4ffb2edd3ddacc (patch) | |
tree | 15132749f6ee217436740c6a567a125898c30702 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | ad1aa86276153475ce5aeb6b060217f63f701c82 (diff) | |
download | bcm5719-llvm-cce7e85165b9d5cc6afd3e6c3d4ffb2edd3ddacc.tar.gz bcm5719-llvm-cce7e85165b9d5cc6afd3e6c3d4ffb2edd3ddacc.zip |
Mark implicit "this" argument as an artificial argument.
llvm-svn: 95673
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 752d5b1964c..8b3e195fa52 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -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) |