diff options
author | Dale Johannesen <dalej@apple.com> | 2008-01-16 19:59:28 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-01-16 19:59:28 +0000 |
commit | 48ae02fe62cafd44c740e67cfae6e7277e61a973 (patch) | |
tree | b240336772d6ab2230dda08dbd41f10f05e77c96 /include/llvm/CodeGen/MachineModuleInfo.h | |
parent | b8b92216f1552dce7533816d21fd3a6de4b03176 (diff) |
Do not mark EH tables no-dead-strip unless the
associated function is so marked.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46088 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index 026c160221..71ec90a9f2 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -35,6 +35,7 @@ #include "llvm/Support/DataTypes.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/UniqueVector.h" +#include "llvm/ADT/SmallPtrSet.h" #include "llvm/GlobalValue.h" #include "llvm/Pass.h" @@ -1037,6 +1038,10 @@ private: // common EH frames. std::vector<Function *> Personalities; + // UsedFunctions - the functions in the llvm.used list in a more easily + // searchable format. + SmallPtrSet<const Function *, 32> UsedFunctions; + bool CallsEHReturn; bool CallsUnwindInit; public: @@ -1235,6 +1240,11 @@ public: return Personalities; } + // UsedFunctions - Return set of the functions in the llvm.used list. + const SmallPtrSet<const Function *, 32>& getUsedFunctions() const { + return UsedFunctions; + } + /// addCatchTypeInfo - Provide the catch typeinfo for a landing pad. /// void addCatchTypeInfo(MachineBasicBlock *LandingPad, |