mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
The exception handling function info should be reset for each new
function. The information isn't used heavily -- it's only used at the end of exception handling emission -- so there's no need to cache it. llvm-svn: 42078
This commit is contained in:
parent
3dc9d9f145
commit
537b869514
@ -43,11 +43,6 @@ namespace llvm {
|
||||
///
|
||||
unsigned FunctionNumber;
|
||||
|
||||
/// Cache of mangled exception handling name for current function. This is
|
||||
/// recalculated at the beginning of each call to runOnMachineFunction().
|
||||
///
|
||||
std::string CurrentFnEHName;
|
||||
|
||||
protected:
|
||||
// Necessary for external weak linkage support
|
||||
std::set<const GlobalValue*> ExtWeakSymbols;
|
||||
|
@ -163,10 +163,8 @@ bool AsmPrinter::doFinalization(Module &M) {
|
||||
const std::string &
|
||||
AsmPrinter::getCurrentFunctionEHName(const MachineFunction *MF) {
|
||||
assert(MF && "No machine function?");
|
||||
if (CurrentFnEHName != "") return CurrentFnEHName;
|
||||
return CurrentFnEHName =
|
||||
Mang->makeNameProper(MF->getFunction()->getName() + ".eh",
|
||||
TAI->getGlobalPrefix());
|
||||
return Mang->makeNameProper(MF->getFunction()->getName() + ".eh",
|
||||
TAI->getGlobalPrefix());
|
||||
}
|
||||
|
||||
void AsmPrinter::SetupMachineFunction(MachineFunction &MF) {
|
||||
|
Loading…
Reference in New Issue
Block a user