diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-08-15 18:59:40 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-08-15 18:59:40 +0000 |
commit | d816e2d3b00e18fd28dbbdc2a748b1ec88330911 (patch) | |
tree | 837c9f8374a72a046c4405c2bf879e95fbe3a71e /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 0b48e7c6bd8368232322ab484708577483a54996 (diff) | |
download | bcm5719-llvm-d816e2d3b00e18fd28dbbdc2a748b1ec88330911.tar.gz bcm5719-llvm-d816e2d3b00e18fd28dbbdc2a748b1ec88330911.zip |
DebugInfo: Don't create duplicate forward declaration metadata unnecessarily.
No functionality change, at best a slight (questionable) optimization,
but necessary for correctness of future work.
llvm-svn: 188474
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 68cc690216b..3a0d07f2a8c 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -305,9 +305,9 @@ private: llvm::DIScope getCurrentContextDescriptor(const Decl *Decl); - /// createRecordFwdDecl - Create a forward decl for a RecordType in a given - /// context. - llvm::DIType createRecordFwdDecl(const RecordDecl *, llvm::DIDescriptor); + /// \brief Create a forward decl for a RecordType in a given context. + llvm::DICompositeType getOrCreateRecordFwdDecl(const RecordDecl *, + llvm::DIDescriptor); /// createContextChain - Create a set of decls for the context chain. llvm::DIDescriptor createContextChain(const Decl *Decl); |