diff options
| author | Bill Wendling <isanbard@gmail.com> | 2007-09-18 09:10:16 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2007-09-18 09:10:16 +0000 |
| commit | ce613280f987584df15ada06c5cf4809b203da46 (patch) | |
| tree | 6148004bc58f4eb3e9cf9c2b6b0d26e8d15b19ca /lib/CodeGen/AsmPrinter.cpp | |
| parent | ce0228de0dcb0a667252d77b6a89a133d8249f1e (diff) | |
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 'lib/CodeGen/AsmPrinter.cpp')
| -rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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()); |
