[llvm-commits] [llvm] r108628 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Bill Wendling isanbard at gmail.com
Sun Jul 18 12:57:02 PDT 2010


The prolog is emitted with labels with or without the -g option.

-bw

On Jul 18, 2010, at 12:39 PM, Evan Cheng wrote:

> Does this work if the code is compiled without -g?
> 
> Evan
> 
> On Jul 17, 2010, at 12:18 PM, Bill Wendling wrote:
> 
>> Author: void
>> Date: Sat Jul 17 14:18:44 2010
>> New Revision: 108628
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=108628&view=rev
>> Log:
>> Use isPrologLabel() instead of checking the opcode directly.
>> 
>> Modified:
>>   llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
>> 
>> Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=108628&r1=108627&r2=108628&view=diff
>> ==============================================================================
>> --- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
>> +++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Sat Jul 17 14:18:44 2010
>> @@ -661,7 +661,7 @@
>>  // label equaling the end of function label and an invalid "row" in the
>>  // FDE. We need to emit a noop in this situation so that the FDE's rows are
>>  // valid.
>> -  bool RequiresNoop = LastMI && LastMI->getOpcode()==TargetOpcode::PROLOG_LABEL;
>> +  bool RequiresNoop = LastMI && LastMI->isPrologLabel();
>> 
>>  // If the function is empty and the object file uses .subsections_via_symbols,
>>  // then we need to emit *something* to the function body to prevent the
>> 
>> 
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 





More information about the llvm-commits mailing list