[llvm-commits] [llvm] r130504 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
Rafael Espindola
rafael.espindola at gmail.com
Fri Apr 29 08:09:53 PDT 2011
Author: rafael
Date: Fri Apr 29 10:09:53 2011
New Revision: 130504
URL: http://llvm.org/viewvc/llvm-project?rev=130504&view=rev
Log:
The last hack for producing bit identical output with cfi on OS X.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp?rev=130504&r1=130503&r2=130504&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp Fri Apr 29 10:09:53 2011
@@ -53,6 +53,14 @@
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)
More information about the llvm-commits
mailing list