[dragonegg] r219613 - Debug.cpp: Use DIBuilder::insertDeclare(), corresponding to LLVM r218787.
NAKAMURA Takumi
geek4civic at gmail.com
Mon Oct 13 06:19:32 PDT 2014
Author: chapuni
Date: Mon Oct 13 08:19:32 2014
New Revision: 219613
URL: http://llvm.org/viewvc/llvm-project?rev=219613&view=rev
Log:
Debug.cpp: Use DIBuilder::insertDeclare(), corresponding to LLVM r218787.
FIXME: Do we need DebugInfo::InsertDeclare() yet?
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=219613&r1=219612&r2=219613&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Mon Oct 13 08:19:32 2014
@@ -377,7 +377,8 @@ void DebugInfo::EmitDeclare(tree decl, u
llvm::DIVariable D = Builder.createLocalVariable(
Tag, VarScope, Name, getOrCreateFile(Loc.file), Loc.line, Ty, optimize);
- Instruction *Call = InsertDeclare(AI, D, IRBuilder.GetInsertBlock());
+ Instruction *Call = Builder.insertDeclare(AI, D, Builder.createExpression(),
+ IRBuilder.GetInsertBlock());
Call->setDebugLoc(DebugLoc::get(Loc.line, 0, VarScope));
}
More information about the llvm-commits
mailing list