aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/gold
diff options
context:
space:
mode:
authorMin-Yih Hsu <min.hsu@sifive.com>2023-11-10 12:11:13 -0800
committerGitHub <noreply@github.com>2023-11-10 12:11:13 -0800
commit9e13d644324335b0992e7adae1c285c1eb27490d (patch)
tree510a62049b1d1240b10051d0de69c9c6bb9c82a3 /llvm/tools/gold
parent81a76902ae0fc08138e37212239c5c704eec2f26 (diff)
downloadllvm-9e13d644324335b0992e7adae1c285c1eb27490d.zip
llvm-9e13d644324335b0992e7adae1c285c1eb27490d.tar.gz
llvm-9e13d644324335b0992e7adae1c285c1eb27490d.tar.bz2
[gold] Enable `MCTargetOptions::AsmVerbose` along with `emit-asm` (#71606)
Print comments into assembly output if we're using `emit-asm`.
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index d9e5983..257832a 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -925,6 +925,7 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite,
break;
case options::OT_ASM_ONLY:
Conf.CGFileType = CodeGenFileType::AssemblyFile;
+ Conf.Options.MCOptions.AsmVerbose = true;
break;
}