[dragonegg] r208283 - Use DIBuilder::createReplaceableForwardDecl(), corresponding to LLVM r208054.
NAKAMURA Takumi
geek4civic at gmail.com
Thu May 8 00:35:00 PDT 2014
Author: chapuni
Date: Thu May 8 02:34:44 2014
New Revision: 208283
URL: http://llvm.org/viewvc/llvm-project?rev=208283&view=rev
Log:
Use DIBuilder::createReplaceableForwardDecl(), corresponding to LLVM r208054.
FIXME: We might inspect leakage around here.
Modified:
dragonegg/trunk/src/Debug.cpp
Modified: dragonegg/trunk/src/Debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Debug.cpp?rev=208283&r1=208282&r2=208283&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Thu May 8 02:34:44 2014
@@ -487,7 +487,7 @@ DIType DebugInfo::createMethodType(tree
// Create a place holder type first. The may be used as a context
// for the argument types.
- llvm::DIType FwdType = Builder.createForwardDecl(
+ llvm::DIType FwdType = Builder.createReplaceableForwardDecl(
llvm::dwarf::DW_TAG_subroutine_type, StringRef(),
findRegion(TYPE_CONTEXT(type)), getOrCreateFile(main_input_filename),
0, 0, 0, 0);
@@ -689,7 +689,7 @@ DIType DebugInfo::createStructType(tree
return DIType(TN);
}
- llvm::DIType FwdDecl = Builder.createForwardDecl(
+ llvm::DIType FwdDecl = Builder.createReplaceableForwardDecl(
Tag, GetNodeName(type), TyContext, getOrCreateFile(Loc.file), Loc.line,
0, 0, 0);
More information about the llvm-commits
mailing list