Hi, I'm trying to use the new debug info and I seem to have broken something. The attached LLVM assembly is the result of compiling a simple main() function. If I generate x86 assembly language from this I get the attached assembly file. The debug info seems complete, except that the .Lfunc_begin symbol is referenced but not defined in the .s file. llvm-dis, llvm-as, and llc seem perfectly happy with this, but the assembler complains about the undefined symbol. Any clues? -Rich -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: main.o.ll URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091103/0f149e71/attachment.ksh> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: main.o.s URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091103/0f149e71/attachment-0001.ksh>
Hi Richard, How do you produce this LLVM assembly? In newest form, llvm.dbg.func_start intrinsic is not used. - Devang On Tue, Nov 3, 2009 at 5:48 AM, Richard Pennington <rich at pennware.com> wrote:> Hi, > > I'm trying to use the new debug info and I seem to have broken something. > The attached LLVM assembly is the result of compiling a simple main() > function. If I generate x86 assembly language from this I get the attached > assembly file. > The debug info seems complete, except that the .Lfunc_begin symbol is > referenced but not defined in the .s file. > > llvm-dis, llvm-as, and llc seem perfectly happy with this, but the assembler > complains about the undefined symbol. Any clues? > > -Rich > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- - Devang
Devang Patel wrote:> Hi Richard, > > How do you produce this LLVM assembly? In newest form, > llvm.dbg.func_start intrinsic is not used. > - > Devang >Hi Devang, The assembly is disassembled from bitcode that I create. I must be using obsolete remnants of the API. I'm calling EmitFunctionStart(), EmitStopPoint(), etc. What should I be using? -Rich