[PATCH] fix llvm linker issue with dbg.declare
Manman Ren
mren at apple.com
Mon Jan 28 15:21:32 PST 2013
Hello,
Given source IR:
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !14), !dbg !15
we used to generate
call void @llvm.dbg.declare(metadata !27, metadata !28), !dbg !29
!27 = metadata !{null}
With this patch, we will generate
call void @llvm.dbg.declare(metadata !{i32* %argc.addr}, metadata !27), !dbg !28
Looking up %argc.addr in ValueMap will return null. Since %argc.addr is already
correctly set up, we can use identity mapping.
Please review,
Thanks,
Manman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linker.patch
Type: application/octet-stream
Size: 10211 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130128/0ce8f059/attachment.obj>
More information about the llvm-commits
mailing list