From 8d4e3b5b48b245ed65259270a53fcaf0bf91d9f7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 6 Nov 2009 18:03:10 +0000 Subject: [PATCH] Use WriteAsOperand to print GlobalAddress MachineOperands. This prints them with the leading '@'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86261 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineInstr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 5744c8a5455..bd1815889b4 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -265,7 +265,8 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const { OS << "'; break; case MachineOperand::MO_GlobalAddress: - OS << "getName(); + OS << "'; break; -- 2.34.1