aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-ml/llvm-ml.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-07-21 09:23:45 -0700
committerFangrui Song <i@maskray.me>2024-07-21 09:23:45 -0700
commit7f17b6b740bd49b84430a46b366381bfc8b74fb0 (patch)
tree102c106eb855385d74491b1d4995d1ba931a5e09 /llvm/tools/llvm-ml/llvm-ml.cpp
parentaf0f58cf14329f5e0fe56fed7c9eb4cd3107a1ce (diff)
downloadllvm-7f17b6b740bd49b84430a46b366381bfc8b74fb0.zip
llvm-7f17b6b740bd49b84430a46b366381bfc8b74fb0.tar.gz
llvm-7f17b6b740bd49b84430a46b366381bfc8b74fb0.tar.bz2
[MC] Migrate to new createAsmStreamer that avoids unused bool parameters
Diffstat (limited to 'llvm/tools/llvm-ml/llvm-ml.cpp')
-rw-r--r--llvm/tools/llvm-ml/llvm-ml.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/tools/llvm-ml/llvm-ml.cpp b/llvm/tools/llvm-ml/llvm-ml.cpp
index bcfec97..db69109 100644
--- a/llvm/tools/llvm-ml/llvm-ml.cpp
+++ b/llvm/tools/llvm-ml/llvm-ml.cpp
@@ -264,6 +264,7 @@ int llvm_ml_main(int Argc, char **Argv, const llvm::ToolContext &) {
MCOptions.AssemblyLanguage = "masm";
MCOptions.MCFatalWarnings = InputArgs.hasArg(OPT_fatal_warnings);
MCOptions.MCSaveTempLabels = InputArgs.hasArg(OPT_save_temp_labels);
+ MCOptions.ShowMCInst = InputArgs.hasArg(OPT_show_inst);
MCOptions.AsmVerbose = true;
Triple TheTriple = GetTriple(ProgName, InputArgs);
@@ -386,10 +387,8 @@ int llvm_ml_main(int Argc, char **Argv, const llvm::ToolContext &) {
std::unique_ptr<MCAsmBackend> MAB(
TheTarget->createMCAsmBackend(*STI, *MRI, MCOptions));
auto FOut = std::make_unique<formatted_raw_ostream>(*OS);
- Str.reset(TheTarget->createAsmStreamer(
- Ctx, std::move(FOut), /*asmverbose*/ true,
- /*useDwarfDirectory*/ true, IP, std::move(CE), std::move(MAB),
- InputArgs.hasArg(OPT_show_inst)));
+ Str.reset(TheTarget->createAsmStreamer(Ctx, std::move(FOut), IP,
+ std::move(CE), std::move(MAB)));
} else if (FileType == "null") {
Str.reset(TheTarget->createNullStreamer(Ctx));