Skip to content

Commit 4e2aaee

Browse files
committed
fixup! Update implementation to match proposal
1 parent c70f679 commit 4e2aaee

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3178,8 +3178,7 @@ bool RISCVAsmParser::parseDirectiveOption() {
31783178
return true;
31793179

31803180
getTargetStreamer().emitDirectiveOptionExact();
3181-
setFeatureBits(RISCV::FeatureExactAssembly,
3182-
"exact-asm");
3181+
setFeatureBits(RISCV::FeatureExactAssembly, "exact-asm");
31833182
clearFeatureBits(RISCV::FeatureRelax, "relax");
31843183
return false;
31853184
}
@@ -3189,8 +3188,7 @@ bool RISCVAsmParser::parseDirectiveOption() {
31893188
return true;
31903189

31913190
getTargetStreamer().emitDirectiveOptionNoExact();
3192-
clearFeatureBits(RISCV::FeatureExactAssembly,
3193-
"exact-asm");
3191+
clearFeatureBits(RISCV::FeatureExactAssembly, "exact-asm");
31943192
setFeatureBits(RISCV::FeatureRelax, "relax");
31953193
return false;
31963194
}
@@ -3251,9 +3249,10 @@ bool RISCVAsmParser::parseDirectiveOption() {
32513249
}
32523250

32533251
// Unknown option.
3254-
Warning(Parser.getTok().getLoc(), "unknown option, expected 'push', 'pop', "
3255-
"'rvc', 'norvc', 'arch', 'relax', 'norelax', "
3256-
"'exact' or 'noexact'");
3252+
Warning(Parser.getTok().getLoc(),
3253+
"unknown option, expected 'push', 'pop', "
3254+
"'rvc', 'norvc', 'arch', 'relax', 'norelax', "
3255+
"'exact' or 'noexact'");
32573256
Parser.eatToEndOfStatement();
32583257
return false;
32593258
}

0 commit comments

Comments
 (0)