diff options
author | Bill Wendling <isanbard@gmail.com> | 2007-09-18 01:47:22 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2007-09-18 01:47:22 +0000 |
commit | 6e19896999f9297db38e1a1a66d9bef0e2f09776 (patch) | |
tree | 38536a441946b081dae2d1328a4cdb8c15fe5e21 /include/llvm | |
parent | ecd91377583b9f42a006eb78aab550c2265d4c9b (diff) | |
download | external_llvm-6e19896999f9297db38e1a1a66d9bef0e2f09776.zip external_llvm-6e19896999f9297db38e1a1a66d9bef0e2f09776.tar.gz external_llvm-6e19896999f9297db38e1a1a66d9bef0e2f09776.tar.bz2 |
Objective-C was generating EH frame info like this:
"_-[NSString(local) isNullOrNil]".eh = 0
.no_dead_strip "_-[NSString(local) isNullOrNil]".eh
The ".eh" should be inside the quotes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 4331387..08a4b60 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -43,6 +43,11 @@ 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; @@ -112,6 +117,11 @@ namespace llvm { /// Should be overridden if an indirect reference should be used. virtual void EmitExternalGlobal(const GlobalVariable *GV); + /// getCurrentFunctionEHName - Called to return (and cache) the + /// CurrentFnEHName. + /// + const std::string &getCurrentFunctionEHName(const MachineFunction *MF); + protected: /// doInitialization - Set up the AsmPrinter when we are working on a new /// module. If your pass overrides this, it must make sure to explicitly |