search for: labeldiff

Displaying 1 result from an estimated 1 matches for "labeldiff".

2011 Mar 10
3
[LLVMdev] Detrimental optimization for reducing relocations.
...up with an address of 0 anyway, we can // just emit an absolute reference to save a relocation. if (Section.isBaseAddressKnownZero()) { OutStreamer.EmitSymbolValue(Label, 4, 0/*AddrSpace*/); return; } // Otherwise, emit it as a label difference from the start of the section. EmitLabelDifference(Label, SectionLabel, 4); } -------------------------------------------------------------------------------- isBaseAddrfessKnownZero() only returns true for some MCSectionELF sections (always false for MachO and COFF), however emitting a symbol value seems to always cause a relocation entry,...