[llvm-commits] [dragonegg] r104441 - /dragonegg/trunk/llvm-debug.cpp
Duncan Sands
baldrick at free.fr
Sat May 22 04:46:37 PDT 2010
Author: baldrick
Date: Sat May 22 06:46:36 2010
New Revision: 104441
URL: http://llvm.org/viewvc/llvm-project?rev=104441&view=rev
Log:
Port commit 103800 (dpatel) from llvm-gcc:
Preserve variable type information during optimized build even if variable is removed by the optimizer.
r103798 is related code gen patch.
Modified:
dragonegg/trunk/llvm-debug.cpp
Modified: dragonegg/trunk/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/llvm-debug.cpp?rev=104441&r1=104440&r2=104441&view=diff
==============================================================================
--- dragonegg/trunk/llvm-debug.cpp (original)
+++ dragonegg/trunk/llvm-debug.cpp Sat May 22 06:46:36 2010
@@ -407,7 +407,7 @@
llvm::DIVariable D =
DebugFactory.CreateVariable(Tag, VarScope,
Name, getOrCreateFile(Loc.file),
- Loc.line, Ty);
+ Loc.line, Ty, optimize);
Instruction *Call =
DebugFactory.InsertDeclare(AI, D, Builder.GetInsertBlock());
More information about the llvm-commits
mailing list