[llvm-commits] [dragonegg] r100286 - /dragonegg/trunk/llvm-debug.cpp

Duncan Sands baldrick at free.fr
Sat Apr 3 01:37:29 PDT 2010


Author: baldrick
Date: Sat Apr  3 03:37:29 2010
New Revision: 100286

URL: http://llvm.org/viewvc/llvm-project?rev=100286&view=rev
Log:
Port commit 100220 (lattner) from llvm-gcc, fixing the build:
NewDebugLoc -> DebugLoc.

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=100286&r1=100285&r2=100286&view=diff
==============================================================================
--- dragonegg/trunk/llvm-debug.cpp (original)
+++ dragonegg/trunk/llvm-debug.cpp Sat Apr  3 03:37:29 2010
@@ -416,7 +416,7 @@
   // Insert an llvm.dbg.declare into the current block.
   Instruction *Call = DebugFactory.InsertDeclare(AI, D, 
                                                  Builder.GetInsertBlock());
-  Call->setDebugLoc(NewDebugLoc::get(CurLineNo, 0, VarScope.getNode()));
+  Call->setDebugLoc(DebugLoc::get(CurLineNo, 0, VarScope.getNode()));
 }
 
 /// EmitStopPoint - Emit a call to llvm.dbg.stoppoint to indicate a change of 
@@ -438,7 +438,7 @@
     if (RegionStack.empty())
       return;
     MDNode *Scope = cast<MDNode>(RegionStack.back());
-    Builder.SetCurrentDebugLocation(NewDebugLoc::get(CurLineNo,0/*col*/,Scope));
+    Builder.SetCurrentDebugLocation(DebugLoc::get(CurLineNo,0/*col*/,Scope));
 }
 
 /// EmitGlobalVariable - Emit information about a global variable.





More information about the llvm-commits mailing list