diff options
| author | Frederic Riss <friss@apple.com> | 2014-09-10 16:03:14 +0000 |
|---|---|---|
| committer | Frederic Riss <friss@apple.com> | 2014-09-10 16:03:14 +0000 |
| commit | a873414f873f336630849e0420dd61f9bbea9d76 (patch) | |
| tree | bc78b06eea60cc6e170c33917d7a164e7622d615 | |
| parent | d8bd91ccfc6463a11a4dc1398111f2c0e91eaa66 (diff) | |
| download | bcm5719-llvm-a873414f873f336630849e0420dd61f9bbea9d76.tar.gz bcm5719-llvm-a873414f873f336630849e0420dd61f9bbea9d76.zip | |
Fix comments of createReplaceableForwardDecl() and createForwardDecl().
Noticed while trying to understand how the merge of forward decalred types
and defintions work.
Reviewers: echristo, dblaikie, aprantl
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D5291
llvm-svn: 217514
| -rw-r--r-- | llvm/lib/IR/DIBuilder.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/IR/DIBuilder.cpp b/llvm/lib/IR/DIBuilder.cpp index c3beae9a28b..181c60f17ca 100644 --- a/llvm/lib/IR/DIBuilder.cpp +++ b/llvm/lib/IR/DIBuilder.cpp @@ -879,8 +879,7 @@ DIBasicType DIBuilder::createUnspecifiedParameter() { return DIBasicType(); } -/// createForwardDecl - Create a temporary forward-declared type that -/// can be RAUW'd if the full type is seen. +/// createForwardDecl - Create a permanent forward-declared type. DICompositeType DIBuilder::createForwardDecl(unsigned Tag, StringRef Name, DIDescriptor Scope, DIFile F, unsigned Line, unsigned RuntimeLang, @@ -914,7 +913,7 @@ DIBuilder::createForwardDecl(unsigned Tag, StringRef Name, DIDescriptor Scope, return RetTy; } -/// createForwardDecl - Create a temporary forward-declared type that +/// createReplaceableForwardDecl - Create a temporary forward-declared type that /// can be RAUW'd if the full type is seen. DICompositeType DIBuilder::createReplaceableForwardDecl( unsigned Tag, StringRef Name, DIDescriptor Scope, DIFile F, unsigned Line, @@ -942,7 +941,7 @@ DICompositeType DIBuilder::createReplaceableForwardDecl( MDNode *Node = MDNode::getTemporary(VMContext, Elts); DICompositeType RetTy(Node); assert(RetTy.isCompositeType() && - "createForwardDecl result should be a DIType"); + "createReplaceableForwardDecl result should be a DIType"); if (!UniqueIdentifier.empty()) retainType(RetTy); return RetTy; |

