The last hack for producing bit identical output with cfi on OS X.
llvm-svn: 130504
This commit is contained in:
parent
697edc89a5
commit
1fc5bf9fc5
|
@ -53,6 +53,14 @@ void DwarfCFIException::EndModule() {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
|
const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
|
||||||
|
|
||||||
|
if (!TLOF.isFunctionEHFrameSymbolPrivate()) {
|
||||||
|
// This is a temporary hack to keep sections in the same order they
|
||||||
|
// were before. This lets us produce bit identical outputs while
|
||||||
|
// transitioning to CFI.
|
||||||
|
Asm->OutStreamer.SwitchSection(TLOF.getEHFrameSection());
|
||||||
|
}
|
||||||
|
|
||||||
unsigned PerEncoding = TLOF.getPersonalityEncoding();
|
unsigned PerEncoding = TLOF.getPersonalityEncoding();
|
||||||
|
|
||||||
if ((PerEncoding & 0x70) != dwarf::DW_EH_PE_pcrel)
|
if ((PerEncoding & 0x70) != dwarf::DW_EH_PE_pcrel)
|
||||||
|
|
Loading…
Reference in New Issue