[llvm] r211423 - Always use a temp symbol for CIE.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jun 20 16:54:32 PDT 2014
Author: rafael
Date: Fri Jun 20 18:54:32 2014
New Revision: 211423
URL: http://llvm.org/viewvc/llvm-project?rev=211423&view=rev
Log:
Always use a temp symbol for CIE.
Fixes pr19185.
Added:
llvm/trunk/test/MC/MachO/pr19185.s
Modified:
llvm/trunk/lib/MC/MCDwarf.cpp
Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=211423&r1=211422&r2=211423&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Fri Jun 20 18:54:32 2014
@@ -1340,12 +1340,7 @@ const MCSymbol &FrameEmitterImpl::EmitCI
const MCObjectFileInfo *MOFI = context.getObjectFileInfo();
bool verboseAsm = streamer.isVerboseAsm();
- MCSymbol *sectionStart;
- if (MOFI->isFunctionEHFrameSymbolPrivate() || !IsEH)
- sectionStart = context.CreateTempSymbol();
- else
- sectionStart = context.GetOrCreateSymbol(Twine("EH_frame") + Twine(CIENum));
-
+ MCSymbol *sectionStart = context.CreateTempSymbol();
streamer.EmitLabel(sectionStart);
CIENum++;
Added: llvm/trunk/test/MC/MachO/pr19185.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/pr19185.s?rev=211423&view=auto
==============================================================================
--- llvm/trunk/test/MC/MachO/pr19185.s (added)
+++ llvm/trunk/test/MC/MachO/pr19185.s Fri Jun 20 18:54:32 2014
@@ -0,0 +1,6 @@
+// RUN: llvm-mc -triple x86_64-apple-darwin %s -filetype=obj -o %t.o
+f:
+ .cfi_startproc
+ .cfi_endproc
+
+EH_frame0:
More information about the llvm-commits
mailing list