summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-08-15 18:59:40 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-08-15 18:59:40 +0000
commitd816e2d3b00e18fd28dbbdc2a748b1ec88330911 (patch)
tree837c9f8374a72a046c4405c2bf879e95fbe3a71e /clang/lib/CodeGen/CGDebugInfo.h
parent0b48e7c6bd8368232322ab484708577483a54996 (diff)
downloadbcm5719-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.h6
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);
OpenPOWER on IntegriCloud