aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-06-13 08:58:19 -0700
committerFangrui Song <i@maskray.me>2025-06-13 08:58:19 -0700
commit18b67a7a102c0052e5ae0e76ef1297902ffeb22d (patch)
tree73ff0f7f4732390888f3479b341b3acb4da9df25 /llvm/lib/MC/MCStreamer.cpp
parentdc9e300f12f3b9c8160dbfb0bc32252ad99c3ba7 (diff)
downloadllvm-18b67a7a102c0052e5ae0e76ef1297902ffeb22d.zip
llvm-18b67a7a102c0052e5ae0e76ef1297902ffeb22d.tar.gz
llvm-18b67a7a102c0052e5ae0e76ef1297902ffeb22d.tar.bz2
MC: Add MCAsmInfo::printExpr to replace MCExpr::print
* Make relocation specifier code closer (MCAsmInfo defines specifiers). * MCExpr::print has an optional MCAsmInfo argument, which is error-prone when omitted. * Enable MCSpecifierExpr
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCStreamer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp
index d70639b..5f1fd57 100644
--- a/llvm/lib/MC/MCStreamer.cpp
+++ b/llvm/lib/MC/MCStreamer.cpp
@@ -72,7 +72,7 @@ void MCTargetStreamer::emitValue(const MCExpr *Value) {
SmallString<128> Str;
raw_svector_ostream OS(Str);
- Value->print(OS, Streamer.getContext().getAsmInfo());
+ Streamer.getContext().getAsmInfo()->printExpr(OS, *Value);
Streamer.emitRawText(OS.str());
}