Cameron Esfahani
2010-Aug-03 22:19 UTC
[LLVMdev] Purpose of PROLOG_LABEL in function prologue?
I don't see any references to them, that's why I brought it up... On Aug 3, 2010, at 3:12 PM, Eric Christopher wrote:> > On Aug 3, 2010, at 3:04 PM, Cameron Esfahani wrote: > >> I've been building/dumping some x86_64 code and I've noticed that each of the routines has 3 temporary symbols, à la: >> >> _main: >> pushq %rbp >> Ltmp18: >> movq %rsp, %rbp >> Ltmp19: >> subq $320, %rsp >> Ltmp20: >> movl %ecx, -276(%rbp) >> >> I've tracked them back to emitPrologue in X86RegisterInfo.cpp. I'm wonder what's their purpose? >> >> They're filling up my symbol table... > > > EH ranges for unwind info. If you look later on in the file for the symbols you'll see them. > > -ericCameron Esfahani dirty at apple.com "You only live once, and the way I live, once is enough" Frank Sinatra
Eric Christopher
2010-Aug-03 22:21 UTC
[LLVMdev] Purpose of PROLOG_LABEL in function prologue?
On Aug 3, 2010, at 3:19 PM, Cameron Esfahani wrote:> I don't see any references to them, that's why I brought it up...Interesting. Is this COFF? We may not emit the final debug info, but leave the ranges in. If they're filling up your symbol table then we likely need another type of assembler label for "COFF internal". -eric
Cameron Esfahani
2010-Aug-03 22:21 UTC
[LLVMdev] Purpose of PROLOG_LABEL in function prologue?
Yeah, this is for COFF. On Aug 3, 2010, at 3:21 PM, Eric Christopher wrote:> > On Aug 3, 2010, at 3:19 PM, Cameron Esfahani wrote: > >> I don't see any references to them, that's why I brought it up... > > Interesting. Is this COFF? We may not emit the final debug info, but leave the ranges in. If they're filling up your symbol table then we likely need another type of assembler label for "COFF internal". > > -ericCameron Esfahani dirty at apple.com "The cake is a lie." Common wisdom
Cameron Esfahani
2010-Aug-03 22:39 UTC
[LLVMdev] Purpose of PROLOG_LABEL in function prologue?
Is there any reason why we couldn't skip emitting temporary labels in the COFF writer? I tried that and everything looks okay... On Aug 3, 2010, at 3:21 PM, Eric Christopher wrote:> > On Aug 3, 2010, at 3:19 PM, Cameron Esfahani wrote: > >> I don't see any references to them, that's why I brought it up... > > Interesting. Is this COFF? We may not emit the final debug info, but leave the ranges in. If they're filling up your symbol table then we likely need another type of assembler label for "COFF internal". > > -ericCameron Esfahani dirty at apple.com Linus is dumb.
Seemingly Similar Threads
- [LLVMdev] Purpose of PROLOG_LABEL in function prologue?
- [LLVMdev] Purpose of PROLOG_LABEL in function prologue?
- [LLVMdev] Purpose of PROLOG_LABEL in function prologue?
- [LLVMdev] Purpose of PROLOG_LABEL in function prologue?
- [LLVMdev] Purpose of PROLOG_LABEL in function prologue?