forked from OSchip/llvm-project
Don't pass back a reference to a temporary.
llvm-svn: 42086
This commit is contained in:
parent
a83fd8014d
commit
e8c885f261
|
@ -115,7 +115,7 @@ namespace llvm {
|
||||||
/// getCurrentFunctionEHName - Called to return (and cache) the
|
/// getCurrentFunctionEHName - Called to return (and cache) the
|
||||||
/// CurrentFnEHName.
|
/// CurrentFnEHName.
|
||||||
///
|
///
|
||||||
const std::string &getCurrentFunctionEHName(const MachineFunction *MF);
|
std::string getCurrentFunctionEHName(const MachineFunction *MF);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// doInitialization - Set up the AsmPrinter when we are working on a new
|
/// doInitialization - Set up the AsmPrinter when we are working on a new
|
||||||
|
|
|
@ -160,8 +160,7 @@ bool AsmPrinter::doFinalization(Module &M) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string &
|
std::string AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
|
||||||
AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
|
|
||||||
assert(MF && "No machine function?");
|
assert(MF && "No machine function?");
|
||||||
return Mang->makeNameProper(MF->getFunction()->getName() + ".eh",
|
return Mang->makeNameProper(MF->getFunction()->getName() + ".eh",
|
||||||
TAI->getGlobalPrefix());
|
TAI->getGlobalPrefix());
|
||||||
|
|
Loading…
Reference in New Issue