llvm.org GIT mirror llvm / 2fa9e6c
Patch by Ray Donnelly to print register names instead of numbers. http://reviews.llvm.org/D3422 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206683 91177308-0d34-0410-b5e6-96231b3b80d8 Yaron Keren 6 years ago
2 changed file(s) with 15 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
12561256 void MCAsmStreamer::EmitWin64EHPushReg(unsigned Register) {
12571257 MCStreamer::EmitWin64EHPushReg(Register);
12581258
1259 OS << "\t.seh_pushreg " << Register;
1259 OS << "\t.seh_pushreg ";
1260 EmitRegisterName(Register);
12601261 EmitEOL();
12611262 }
12621263
12631264 void MCAsmStreamer::EmitWin64EHSetFrame(unsigned Register, unsigned Offset) {
12641265 MCStreamer::EmitWin64EHSetFrame(Register, Offset);
12651266
1266 OS << "\t.seh_setframe " << Register << ", " << Offset;
1267 OS << "\t.seh_setframe ";
1268 EmitRegisterName(Register);
1269 OS << ", " << Offset;
12671270 EmitEOL();
12681271 }
12691272
12771280 void MCAsmStreamer::EmitWin64EHSaveReg(unsigned Register, unsigned Offset) {
12781281 MCStreamer::EmitWin64EHSaveReg(Register, Offset);
12791282
1280 OS << "\t.seh_savereg " << Register << ", " << Offset;
1283 OS << "\t.seh_savereg ";
1284 EmitRegisterName(Register);
1285 OS << ", " << Offset;
12811286 EmitEOL();
12821287 }
12831288
12841289 void MCAsmStreamer::EmitWin64EHSaveXMM(unsigned Register, unsigned Offset) {
12851290 MCStreamer::EmitWin64EHSaveXMM(Register, Offset);
12861291
1287 OS << "\t.seh_savexmm " << Register << ", " << Offset;
1292 OS << "\t.seh_savexmm ";
1293 EmitRegisterName(Register);
1294 OS << ", " << Offset;
12881295 EmitEOL();
12891296 }
12901297
22 # CHECK: .seh_proc func
33 # CHECK: .seh_pushframe @code
44 # CHECK: .seh_stackalloc 24
5 # CHECK: .seh_savereg 6, 16
6 # CHECK: .seh_savexmm 8, 0
7 # CHECK: .seh_pushreg 3
8 # CHECK: .seh_setframe 3, 0
5 # CHECK: .seh_savereg %rbp, 16
6 # CHECK: .seh_savexmm %r8, 0
7 # CHECK: .seh_pushreg %rbx
8 # CHECK: .seh_setframe %rbx, 0
99 # CHECK: .seh_endprologue
1010 # CHECK: .seh_handler __C_specific_handler, @except
1111 # CHECK-NOT: .section{{.*}}.xdata