[llvm-commits] [llvm] r42078 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter.cpp
Bill Wendling
isanbard at gmail.com
Mon Sep 17 22:03:45 PDT 2007
Author: void
Date: Tue Sep 18 00:03:44 2007
New Revision: 42078
URL: http://llvm.org/viewvc/llvm-project?rev=42078&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
llvm/trunk/lib/CodeGen/AsmPrinter.cpp
Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=42078&r1=42077&r2=42078&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Tue Sep 18 00:03:44 2007
@@ -43,11 +43,6 @@
///
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;
Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter.cpp?rev=42078&r1=42077&r2=42078&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter.cpp Tue Sep 18 00:03:44 2007
@@ -163,10 +163,8 @@
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) {
More information about the llvm-commits
mailing list