mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
The last hack for producing bit identical output with cfi on OS X.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130504 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b11a4cbdc
commit
ac3ba1b27e
@ -53,6 +53,14 @@ void DwarfCFIException::EndModule() {
|
||||
return;
|
||||
|
||||
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();
|
||||
|
||||
if ((PerEncoding & 0x70) != dwarf::DW_EH_PE_pcrel)
|
||||
|
Loading…
x
Reference in New Issue
Block a user