From b296942f6d151225353a672bb235a599e14de2cc Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 29 Sep 2009 18:40:58 +0000 Subject: Remove std::string uses from DebugInfo interface. llvm-svn: 83083 --- llvm/lib/CodeGen/MachineInstr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/MachineInstr.cpp') diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index ae6f3f5d5f6..3d1c22159a5 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1041,9 +1041,8 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const { const MachineFunction *MF = getParent()->getParent(); DebugLocTuple DLT = MF->getDebugLocTuple(debugLoc); DICompileUnit CU(DLT.CompileUnit); - std::string Dir, Fn; OS << " [dbg: " - << CU.getDirectory(Dir) << '/' << CU.getFilename(Fn) << "," + << CU.getDirectory() << '/' << CU.getFilename() << "," << DLT.Line << "," << DLT.Col << "]"; } -- cgit v1.2.3