Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit ffb6f6e

Browse files
author
Matheus Almeida
committed
[mips] Assembly parser must invoke the target streamer to handle .set reorder macro.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203459 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 8ca089d commit ffb6f6e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/Target/Mips/AsmParser/MipsAsmParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2331,6 +2331,7 @@ bool MipsAsmParser::parseSetReorderDirective() {
23312331
return false;
23322332
}
23332333
Options.setReorder();
2334+
getTargetStreamer().emitDirectiveSetReorder();
23342335
Parser.Lex(); // Consume the EndOfStatement.
23352336
return false;
23362337
}

test/MC/Mips/mips_directives.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ $JTI0_0:
2828
# CHECK: .4byte 2013265916
2929
.set at=$12
3030
.set macro
31+
# CHECK: .set reorder
3132
# CHECK: b 1332 # encoding: [0x10,0x00,0x01,0x4d]
3233
# CHECK: nop # encoding: [0x00,0x00,0x00,0x00]
3334
# CHECK: j 1328 # encoding: [0x08,0x00,0x01,0x4c]

0 commit comments

Comments
 (0)