aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h2
-rw-r--r--lib/CodeGen/AsmPrinter.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 31fb0f43e2..4a312a79a2 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
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 7b579c4ea3..6622bcdee6 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -160,8 +160,7 @@ bool AsmPrinter::doFinalization(Module &M) {
return false;
}
-const std::string &
-AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
+std::string AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
assert(MF && "No machine function?");
return Mang->makeNameProper(MF->getFunction()->getName() + ".eh",
TAI->getGlobalPrefix());