diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-05-09 23:16:27 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-05-09 23:16:27 +0000 |
commit | ffcf4ba947266a50a790a2ebbe3ceff0827b4d05 (patch) | |
tree | 3a92d55335d88da127bbceaa247e1efff212d799 /clang/lib/CodeGen/CodeGenModule.h | |
parent | de9ce87f0368a2b0c753ecdeb7bd3738379c9c5c (diff) | |
download | bcm5719-llvm-ffcf4ba947266a50a790a2ebbe3ceff0827b4d05.tar.gz bcm5719-llvm-ffcf4ba947266a50a790a2ebbe3ceff0827b4d05.zip |
Debug Info: Fix a problem that resulted in missing DW_AT_specifications
for C++ constructors.
If the DIType for a class was generated by
CGDebugInfo::createContextChain(), the cache contains only a
limited DIType wihtout any declarations. Since EmitFunctionStart()
needs to find the canonical declaration for each method, we
construct the complete type before emitting any method.
rdar://problem/13116508
llvm-svn: 181561
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 1d6c7e98e5c..e4e29a8d6b6 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1025,6 +1025,7 @@ private: void EmitNamespace(const NamespaceDecl *D); void EmitLinkageSpec(const LinkageSpecDecl *D); + void CompleteDIClassType(const CXXMethodDecl* D); /// EmitCXXConstructors - Emit constructors (base, complete) from a /// C++ constructor Decl. |