aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-09-29 18:40:58 +0000
committerDevang Patel <dpatel@apple.com>2009-09-29 18:40:58 +0000
commitaaf012ebb492482ba3626e4129140713cd7836b7 (patch)
treea8b8f8f8ef75c6473e5b19d7f4f8b955af86052a /lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parente4002bc8194a36ff425f37829d6fb04a56ef1358 (diff)
downloadexternal_llvm-aaf012ebb492482ba3626e4129140713cd7836b7.tar.gz
external_llvm-aaf012ebb492482ba3626e4129140713cd7836b7.tar.bz2
external_llvm-aaf012ebb492482ba3626e4129140713cd7836b7.zip
Remove std::string uses from DebugInfo interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 6c5d453991..ff16f22d81 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1750,9 +1750,8 @@ void AsmPrinter::EmitComments(const MachineInstr &MI) const {
O.PadToColumn(MAI->getCommentColumn());
O << MAI->getCommentString() << " SrcLine ";
if (DLT.CompileUnit) {
- std::string Str;
DICompileUnit CU(DLT.CompileUnit);
- O << CU.getFilename(Str) << " ";
+ O << CU.getFilename() << " ";
}
O << DLT.Line;
if (DLT.Col != 0)