mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Patch by Ray Donnelly.
Emit WIN64 SEH registers by name instead of just number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40a9c0f58b
commit
becde896f5
@ -1257,14 +1257,17 @@ void MCAsmStreamer::EmitWin64EHHandlerData() {
|
||||
void MCAsmStreamer::EmitWin64EHPushReg(unsigned Register) {
|
||||
MCStreamer::EmitWin64EHPushReg(Register);
|
||||
|
||||
OS << "\t.seh_pushreg " << Register;
|
||||
OS << "\t.seh_pushreg ";
|
||||
EmitRegisterName(Register);
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void MCAsmStreamer::EmitWin64EHSetFrame(unsigned Register, unsigned Offset) {
|
||||
MCStreamer::EmitWin64EHSetFrame(Register, Offset);
|
||||
|
||||
OS << "\t.seh_setframe " << Register << ", " << Offset;
|
||||
OS << "\t.seh_setframe ";
|
||||
EmitRegisterName(Register);
|
||||
OS << ", " << Offset;
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
@ -1278,14 +1281,18 @@ void MCAsmStreamer::EmitWin64EHAllocStack(unsigned Size) {
|
||||
void MCAsmStreamer::EmitWin64EHSaveReg(unsigned Register, unsigned Offset) {
|
||||
MCStreamer::EmitWin64EHSaveReg(Register, Offset);
|
||||
|
||||
OS << "\t.seh_savereg " << Register << ", " << Offset;
|
||||
OS << "\t.seh_savereg ";
|
||||
EmitRegisterName(Register);
|
||||
OS << ", " << Offset;
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
void MCAsmStreamer::EmitWin64EHSaveXMM(unsigned Register, unsigned Offset) {
|
||||
MCStreamer::EmitWin64EHSaveXMM(Register, Offset);
|
||||
|
||||
OS << "\t.seh_savexmm " << Register << ", " << Offset;
|
||||
OS << "\t.seh_savexmm ";
|
||||
EmitRegisterName(Register);
|
||||
OS << ", " << Offset;
|
||||
EmitEOL();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user