/// 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
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());