diff options
author | Eric Christopher <echristo@apple.com> | 2012-01-20 22:10:15 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-01-20 22:10:15 +0000 |
commit | 4ddca8ab795be2bb239a80b48a57d09f54dc07ba (patch) | |
tree | 6ef54ab705ad02ff6043bf726f085dc90a31fcfe /lib/CodeGen/CGDebugInfo.h | |
parent | 3575c456e969d71623fe83e19ea499285cdb3567 (diff) |
When adding types to the context chain for record types, just emit
a forward declaration unless we already have a type. We can fill it in
later if it's actually used.
Fixes PR11345
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index 8831c535fa..49f822be00 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -232,6 +232,9 @@ private: /// getContextDescriptor - Get context info for the decl. llvm::DIDescriptor getContextDescriptor(const Decl *Decl); + /// CreateContextChain - Create a set of decls for the context chain. + llvm::DIDescriptor createContextChain(const Decl *Decl); + /// getCurrentDirname - Return current directory name. StringRef getCurrentDirname(); |