Always use a temp symbol for CIE.

Fixes pr19185.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211423 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-06-20 23:54:32 +00:00
parent 32b14f80c2
commit 45fdc3d534
2 changed files with 7 additions and 6 deletions

View File

@ -1340,12 +1340,7 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCObjectStreamer &streamer,
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++;

6
test/MC/MachO/pr19185.s Normal file
View File

@ -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: