diff options
author | Jim Grosbach <grosbach@apple.com> | 2009-09-01 01:57:56 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2009-09-01 01:57:56 +0000 |
commit | 3fb2b1ede30193b59a651328a946174196b20610 (patch) | |
tree | a24c457792ad0101ac817f963c62327ebf1d6135 /include | |
parent | f98d8fee3c5367622cf03e52f1e1b2251ac6cf3f (diff) | |
download | external_llvm-3fb2b1ede30193b59a651328a946174196b20610.zip external_llvm-3fb2b1ede30193b59a651328a946174196b20610.tar.gz external_llvm-3fb2b1ede30193b59a651328a946174196b20610.tar.bz2 |
Clean up LSDA name generation and use for SJLJ exception handling. This
makes an eggregious hack somewhat more palatable. Bringing the LSDA forward
and making it a GV available for reference would be even better, but is
beyond the scope of what I'm looking to solve at this point.
Objective C++ code could generate function names that broke the previous
scheme. This fixes that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 621b47d..c7d2f54 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -172,6 +172,10 @@ namespace llvm { /// std::string getCurrentFunctionEHName(const MachineFunction *MF) const; + /// getFunctionNumber - Return a unique ID for the current function. + /// + unsigned getFunctionNumber() const { return FunctionNumber; } + protected: /// getAnalysisUsage - Record analysis usage. /// @@ -217,10 +221,6 @@ namespace llvm { /// is being processed from runOnMachineFunction. void SetupMachineFunction(MachineFunction &MF); - /// getFunctionNumber - Return a unique ID for the current function. - /// - unsigned getFunctionNumber() const { return FunctionNumber; } - /// IncrementFunctionNumber - Increase Function Number. AsmPrinters should /// not normally call this, as the counter is automatically bumped by /// SetupMachineFunction. |