search for: emitfunctionstart

Displaying 5 results from an estimated 5 matches for "emitfunctionstart".

2009 Nov 04
2
[LLVMdev] Debug info
...tel 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
2009 Nov 03
2
[LLVMdev] Debug info
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
2009 Nov 04
0
[LLVMdev] Debug info
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
2008 Jun 21
3
[LLVMdev] llvm-gcc -O0 compile times
...d stuff. However, even the asmprinter is taking a significant amount of time. This is partially because it has to output a ton of stuff, but even then it could be improved. For example, picking on the frontend for a bit, we spend 10% of "-emit- llvm -O0 -g -c" time in DebugInfo::EmitFunctionStart, most of which is spent recursively walking the debug info with DISerializer. We also spend 9.3% of the time in DebugInfo::EmitDeclare, 10% of the time in eraseLocalLLVMValues, 12% of the time writing the .bc file (which isn't relevant to normal use), 21% of time parsing (which we can&...
2014 Aug 27
6
[LLVMdev] Minimizing -gmlt
...lvm-dev/attachments/20140827/81edfe40/attachment.html> -------------- next part -------------- diff --git lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.cpp index 0b20f54..e3f23c4 100644 --- lib/CodeGen/CGDebugInfo.cpp +++ lib/CodeGen/CGDebugInfo.cpp @@ -2534,8 +2534,12 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, if (Loc.isInvalid()) CurLoc = SourceLocation(); } - unsigned LineNo = getLineNumber(Loc); - unsigned ScopeLine = getLineNumber(ScopeLoc); + unsigned LineNo = 0; + unsigned ScopeLine = 0; + if (DebugKind > CodeGenOptions::DebugLineTablesOnly) { + LineNo = get...