[llvm-commits] [dragonegg] r137817 - /dragonegg/trunk/src/Debug.cpp

Duncan Sands baldrick at free.fr
Wed Aug 17 00:39:27 PDT 2011


Author: baldrick
Date: Wed Aug 17 02:39:27 2011
New Revision: 137817

URL: http://llvm.org/viewvc/llvm-project?rev=137817&view=rev
Log:
Port commit 137753 (dpatel) from llvm-gcc.  Original commit message:
DIBuilder is moving forward to reduce in memory use by MDNodes. However, DIFactory does not emit debug info in updated form.
Use LLVMDebugVersion10 directly here so that debug info nodes produced by DIFactory do not claim to adhere newer structure.


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=137817&r1=137816&r2=137817&view=diff
==============================================================================
--- dragonegg/trunk/src/Debug.cpp (original)
+++ dragonegg/trunk/src/Debug.cpp Wed Aug 17 02:39:27 2011
@@ -1167,7 +1167,10 @@
 Constant *DIFactory::GetTagConstant(unsigned TAG) {
   assert((TAG & LLVMDebugVersionMask) == 0 &&
          "Tag too large for debug encoding!");
-  return ConstantInt::get(Type::getInt32Ty(VMContext), TAG | LLVMDebugVersion);
+  // llvm has moved forward. DIFactory does not emit debug info in updated form.
+  // Use LLVMDebugVersion10 directly here.
+  return ConstantInt::get(Type::getInt32Ty(VMContext), 
+                          TAG | LLVMDebugVersion10);
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list