[PATCH] D45864: [RISCV] Support .option rvc and norvc

Sameer AbuAsal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 22 14:52:35 PDT 2018


sabuasal added inline comments.


================
Comment at: lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1000
+
+  if (IDVal == ".option") {
+    return parseDirectiveOption();
----------------
no braces needed.


================
Comment at: lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1012
+  // At the moment only identifiers are supported.
+  if (Tok.isNot(AsmToken::Identifier)) {
+    return Error(Parser.getTok().getLoc(),
----------------
no braces needed


================
Comment at: lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1023
+    Parser.Lex();
+    if (Parser.getTok().isNot(AsmToken::EndOfStatement)) {
+      return Error(Parser.getTok().getLoc(),
----------------
no braces needed


================
Comment at: lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1035
+    Parser.Lex();
+    if (Parser.getTok().isNot(AsmToken::EndOfStatement)) {
+      return Error(Parser.getTok().getLoc(),
----------------
no braces needed


Repository:
  rL LLVM

https://reviews.llvm.org/D45864





More information about the llvm-commits mailing list