Fix comments of createReplaceableForwardDecl() and createForwardDecl().
authorFrederic Riss <friss@apple.com>
Wed, 10 Sep 2014 16:03:14 +0000 (16:03 +0000)
committerFrederic Riss <friss@apple.com>
Wed, 10 Sep 2014 16:03:14 +0000 (16:03 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217514 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/DIBuilder.cpp

index c3beae9a28bffc556f838e7a79dd7126ab3ef98e..181c60f17caad18c819d45502e6ed5c54a251e62 100644 (file)
@@ -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;