[MC] Correctly escape .safeseh's symbol
This fixes PR24107. llvm-svn: 242050
This commit is contained in:
parent
4c8ca53f7e
commit
1305e2c0f5
|
@ -503,7 +503,8 @@ void MCAsmStreamer::EndCOFFSymbolDef() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MCAsmStreamer::EmitCOFFSafeSEH(MCSymbol const *Symbol) {
|
void MCAsmStreamer::EmitCOFFSafeSEH(MCSymbol const *Symbol) {
|
||||||
OS << "\t.safeseh\t" << *Symbol;
|
OS << "\t.safeseh\t";
|
||||||
|
Symbol->print(OS, MAI);
|
||||||
EmitEOL();
|
EmitEOL();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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