diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-09-18 05:03:44 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-09-18 05:03:44 +0000 |
commit | 5f19cf5df86bb47a4572bd5a5245798c3ec6d7e7 (patch) | |
tree | 46564c8d97541c2b46b760b1c7840dfc49c0caf7 /lib/CodeGen/AsmPrinter.cpp | |
parent | 8b94a14a782867b1da1f272b6f502562d0c2a1aa (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp index e0a5928da8..7b579c4ea3 100644 --- a/lib/CodeGen/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter.cpp @@ -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) { |