mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
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:
parent
32b14f80c2
commit
45fdc3d534
@ -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
6
test/MC/MachO/pr19185.s
Normal 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:
|
Loading…
x
Reference in New Issue
Block a user