If I translate my original C code using LLVM to optimized C code (to harness LLVM's IPO) and then use a different compiler to compile translated C code, can I still generate debug info that would allow debugging the original program? Thanks, Sanjiv -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20071130/9af4dd40/attachment.html>
On Nov 30, 2007, at 9:23 AM, Sanjiv Gupta wrote:> If I translate my original C code using LLVM to optimized C code (to > harness LLVM's IPO) and then use a different compiler to compile > translated C code, can I still generate debug info that would allow > debugging the original program?Nope, sorry. The CBE is a useful tool, but doesn't support a lot of corner cases. I'd take a look at the llvm bugzilla (search for CBE) for some examples. -Chris
On Nov 30, 2007, at 9:23 AM, Sanjiv Gupta wrote:> If I translate my original C code using LLVM to optimized C code > (to harness LLVM's IPO) and then use a different compiler to > compile translated C code, can I still generate debug info that > would allow debugging the original program?Not right now. But I think that can be added. It would be a welcome addition. Patch welcome. Evan> > Thanks, > Sanjiv > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev