[llvm-dev] no-frame-pointer-elim & optimized

Carlo Kok via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 25 22:36:25 PDT 2017

I have a function with:
  attributes #2 = { "no-frame-pointer-elim"="true" 
"no-frame-pointer-elim-non-leaf" }

Yet when compiling it generates:

(Note how it checks fFinalizer before setting up ebp).
It also has a:
.loc	36 195 7 prologue_end
before this happens

How can I get llvm to do the frame setup before prologue init (so 
debuggers know what is going on)? And if not, how can a debugger know 
where the frame is?


Carlo Kok
RemObjects Software

More information about the llvm-dev mailing list