summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-03-09 05:04:40 +0000
committerBill Wendling <isanbard@gmail.com>2009-03-09 05:04:40 +0000
commitc6869f4695ee7dcaab1f67fa87a92546dd877cc6 (patch)
treea5f400f93e79c30c2838916922ce09afd92c5e18 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent4a48815bd95d71ef6e367c3e650d033733481645 (diff)
downloadbcm5719-llvm-c6869f4695ee7dcaab1f67fa87a92546dd877cc6.tar.gz
bcm5719-llvm-c6869f4695ee7dcaab1f67fa87a92546dd877cc6.zip
Pass in a std::string when getting the names of debugging things. This cuts down
on the number of times a std::string is created and copied. llvm-svn: 66396
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 004cb247b1f..03923387625 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -179,7 +179,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
}
} else if (const DbgStopPointSDNode *D = dyn_cast<DbgStopPointSDNode>(Node)) {
DICompileUnit CU(cast<GlobalVariable>(D->getCompileUnit()));
- Op += ": " + CU.getFilename();
+ std::string FN;
+ Op += ": " + CU.getFilename(FN);
Op += ":" + utostr(D->getLine());
if (D->getColumn() != 0)
Op += ":" + utostr(D->getColumn());
OpenPOWER on IntegriCloud