[llvm-commits] [llvm-gcc-4.2] r137753 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Tue Aug 16 14:03:27 PDT 2011
Author: dpatel
Date: Tue Aug 16 16:03:26 2011
New Revision: 137753
URL: http://llvm.org/viewvc/llvm-project?rev=137753&view=rev
Log:
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:
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=137753&r1=137752&r2=137753&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Tue Aug 16 16:03:26 2011
@@ -1474,7 +1474,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