aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-09-18 09:10:16 +0000
committerBill Wendling <isanbard@gmail.com>2007-09-18 09:10:16 +0000
commitce613280f987584df15ada06c5cf4809b203da46 (patch)
tree6148004bc58f4eb3e9cf9c2b6b0d26e8d15b19ca /include
parentce0228de0dcb0a667252d77b6a89a133d8249f1e (diff)
downloadexternal_llvm-ce613280f987584df15ada06c5cf4809b203da46.zip
external_llvm-ce613280f987584df15ada06c5cf4809b203da46.tar.gz
external_llvm-ce613280f987584df15ada06c5cf4809b203da46.tar.bz2
Don't pass back a reference to a temporary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 31fb0f4..4a312a7 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -115,7 +115,7 @@ namespace llvm {
/// getCurrentFunctionEHName - Called to return (and cache) the
/// CurrentFnEHName.
///
- const std::string &getCurrentFunctionEHName(const MachineFunction *MF);
+ std::string getCurrentFunctionEHName(const MachineFunction *MF);
protected:
/// doInitialization - Set up the AsmPrinter when we are working on a new