[PATCH] [mips] Fix the position of the .loc prologue_end directive in cases when the generated code contains DBG_VALUE instruction.

Sasa Stankovic Sasa.Stankovic at imgtec.com
Thu Oct 16 05:09:03 PDT 2014


> Does anyone know of any benefits to using the FrameSetup flag? It seems preferable to use it so that prologue instructions have the location of the start of the function but I doubt that it has a real effect on the output.

It seems the only part of LLVM that uses FrameSetup flag is the function calculateDbgValueHistory that calculates the history for local variables. I did quick check by changing Mips backend to add FrameSetup flag to some (but not all) of the instructions in the prologue, and the generated debug info in .s files was as before the change.

http://reviews.llvm.org/D5209






More information about the llvm-commits mailing list