From ccbdc7ab82792ac5d7863ef086f11fb010d88073 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 9 Mar 2009 05:04:40 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66396 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp') diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 004cb247b1..0392338762 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -179,7 +179,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, } } else if (const DbgStopPointSDNode *D = dyn_cast(Node)) { DICompileUnit CU(cast(D->getCompileUnit())); - Op += ": " + CU.getFilename(); + std::string FN; + Op += ": " + CU.getFilename(FN); Op += ":" + utostr(D->getLine()); if (D->getColumn() != 0) Op += ":" + utostr(D->getColumn()); -- cgit v1.2.3-18-g5258