diff options
Diffstat (limited to 'gnu/llvm/tools/llvm-mc/llvm-mc.cpp')
| -rw-r--r-- | gnu/llvm/tools/llvm-mc/llvm-mc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/llvm/tools/llvm-mc/llvm-mc.cpp b/gnu/llvm/tools/llvm-mc/llvm-mc.cpp index f494d02f3bc..c0976502f54 100644 --- a/gnu/llvm/tools/llvm-mc/llvm-mc.cpp +++ b/gnu/llvm/tools/llvm-mc/llvm-mc.cpp @@ -164,6 +164,10 @@ MainFileName("main-file-name", static cl::opt<bool> SaveTempLabels("save-temp-labels", cl::desc("Don't discard temporary labels")); +static cl::opt<bool> LexMasmIntegers( + "masm-integers", + cl::desc("Enable binary and hex masm integers (0b110 and 0ABCh)")); + static cl::opt<bool> NoExecStack("no-exec-stack", cl::desc("File doesn't need an exec stack")); @@ -293,6 +297,7 @@ static int AssembleInput(const char *ProgName, const Target *TheTarget, return SymbolResult; Parser->setShowParsedOperands(ShowInstOperands); Parser->setTargetParser(*TAP); + Parser->getLexer().setLexMasmIntegers(LexMasmIntegers); int Res = Parser->Run(NoInitialTextSection); @@ -313,7 +318,6 @@ int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv, "llvm machine code playground\n"); MCTargetOptions MCOptions = InitMCTargetOptionsFromFlags(); - TripleName = Triple::normalize(TripleName); setDwarfDebugFlags(argc, argv); setDwarfDebugProducer(); |
