The current interface requires some rather ugly tracking of state due to
splitting up the calls for each argument. Instead, pack them all into a
single call by passing an ArrayRef. Also clean up the dodgy whitespace
emitted for the directive whilst here; there was a stray space between
the tab and .option, and there was a tab rather than a space after the
first comma for some strange reason.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp | ||
---|---|---|
2743 | NB: This is the reason for using std::string rather than StringRef in RISCVOptionArchArg |
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp | ||
---|---|---|
2743 | Why do we need to emit a canonical ISA string instead of what was passed? |
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp | ||
---|---|---|
2743 | This is a good question, especially when we *don't* include a version number for .option arch, [+-]... dunno what makes more sense, but this was intended to be NFC (as was the dependency, modulo diagnostics) |
NB: This is the reason for using std::string rather than StringRef in RISCVOptionArchArg