Displaying 2 results from an estimated 2 matches for "sectionsourcelines".
2008 Jul 17
3
[LLVMdev] RFC: debug_line Emission
In CodeGen/DwarfWriter.cpp's EmitDebugLine file, these lines are
causing havoc on Mac OS X systems:
// If there are no lines to emit (such as when we're using .loc
directives
// to emit .debug_line information) don't emit a .debug_line
header.
if (SectionSourceLines.empty())
return;
Basically, if there's a file with only data in it, we still need the
debug_line prologue generated.
$ cat a.c
const char ver[] __attribute__((used)) = "Hello world\n";
$ gcc -g -O0 -c a.c -o a.gcc.o
$ dwarfdump --debug-line=0 a.gcc.o
--------------------------...
2008 Jul 18
0
[LLVMdev] RFC: debug_line Emission
...odeGen/DwarfWriter.cpp's EmitDebugLine file, these lines are
> causing havoc on Mac OS X systems:
>
> // If there are no lines to emit (such as when we're using .loc
> directives
> // to emit .debug_line information) don't emit a .debug_line
> header.
> if (SectionSourceLines.empty())
> return;
The fix is to move the early exist to just below this line:
EmitLabel("line_prolog_end", 0), right?
>
>
> Basically, if there's a file with only data in it, we still need the
> debug_line prologue generated.
Right.
>
> By removing th...