summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-09-18 05:03:44 +0000
committerBill Wendling <isanbard@gmail.com>2007-09-18 05:03:44 +0000
commit69833b61acd7cd61ea6fefb395eaf2b989b25b47 (patch)
tree7b800c45dc2e531367a8e73ba9fffd49c6c92943 /llvm/lib/CodeGen
parent76a0374b252c24bf2b2f571b252a3822698c1c33 (diff)
downloadbcm5719-llvm-69833b61acd7cd61ea6fefb395eaf2b989b25b47.tar.gz
bcm5719-llvm-69833b61acd7cd61ea6fefb395eaf2b989b25b47.zip
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
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp
index e0a5928da8f..7b579c4ea30 100644
--- a/llvm/lib/CodeGen/AsmPrinter.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud