From 0080ee2d910441d7e35ffdba29a61c8a35d8a0d9 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 6 Nov 2009 18:03:10 +0000 Subject: Use WriteAsOperand to print GlobalAddress MachineOperands. This prints them with the leading '@'. llvm-svn: 86261 --- llvm/lib/CodeGen/MachineInstr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineInstr.cpp') diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 5744c8a5..bd18158 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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; -- cgit v1.1