mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
[MC] Correctly escape .safeseh's symbol
This fixes PR24107. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242050 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9be1720729
commit
8a2d65cf4a
@ -503,7 +503,8 @@ void MCAsmStreamer::EndCOFFSymbolDef() {
|
||||
}
|
||||
|
||||
void MCAsmStreamer::EmitCOFFSafeSEH(MCSymbol const *Symbol) {
|
||||
OS << "\t.safeseh\t" << *Symbol;
|
||||
OS << "\t.safeseh\t";
|
||||
Symbol->print(OS, MAI);
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
|
6
test/MC/COFF/safeseh.s
Normal file
6
test/MC/COFF/safeseh.s
Normal file
@ -0,0 +1,6 @@
|
||||
// RUN: llvm-mc -triple i686-pc-win32 %s | FileCheck %s
|
||||
|
||||
// check that we quote the output of .safeseh
|
||||
|
||||
.safeseh "\01foo"
|
||||
// CHECK: .safeseh "\01foo"
|
Loading…
Reference in New Issue
Block a user