[llvm-commits] Fwd: [llvm-gcc-4.2] r137753 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Devang Patel
dpatel at apple.com
Tue Aug 16 14:08:03 PDT 2011
Dragon-egg developers,
Please apply this patch to dragon-egg also.
Thanks!
-
Devang
Begin forwarded message:
> From: Devang Patel <dpatel at apple.com>
> Date: August 16, 2011 2:03:27 PM PDT
> To: llvm-commits at cs.uiuc.edu
> Subject: [llvm-commits] [llvm-gcc-4.2] r137753 - /llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
>
> 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);
> }
>
> //===----------------------------------------------------------------------===//
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110816/17c819c6/attachment.html>
More information about the llvm-commits
mailing list