diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-14 19:53:31 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-14 19:53:31 +0000 |
commit | 7deb447781bee7639ffb12a31c8e4f74a2ba9db8 (patch) | |
tree | 54ee7d7853cb815db63556b572e3dc5d6b234963 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h | |
parent | c2c08d19b80f08c9fd6c1b17181665b983157885 (diff) | |
download | bcm5719-llvm-7deb447781bee7639ffb12a31c8e4f74a2ba9db8.tar.gz bcm5719-llvm-7deb447781bee7639ffb12a31c8e4f74a2ba9db8.zip |
Factor out EH landing pad code into a separate function, and constify
a bunch of stuff to support it.
llvm-svn: 101273
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h index 45a15ca0e7f..9e972dc811d 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h @@ -74,8 +74,8 @@ public: DenseMap<const AllocaInst*, int> StaticAllocaMap; #ifndef NDEBUG - SmallSet<Instruction*, 8> CatchInfoLost; - SmallSet<Instruction*, 8> CatchInfoFound; + SmallSet<const Instruction *, 8> CatchInfoLost; + SmallSet<const Instruction *, 8> CatchInfoFound; #endif struct LiveOutInfo { @@ -143,10 +143,11 @@ GlobalVariable *ExtractTypeInfo(Value *V); /// AddCatchInfo - Extract the personality and type infos from an eh.selector /// call, and add them to the specified machine basic block. -void AddCatchInfo(CallInst &I, MachineModuleInfo *MMI, MachineBasicBlock *MBB); +void AddCatchInfo(const CallInst &I, + MachineModuleInfo *MMI, MachineBasicBlock *MBB); /// CopyCatchInfo - Copy catch information from DestBB to SrcBB. -void CopyCatchInfo(BasicBlock *SrcBB, BasicBlock *DestBB, +void CopyCatchInfo(const BasicBlock *SrcBB, const BasicBlock *DestBB, MachineModuleInfo *MMI, FunctionLoweringInfo &FLI); /// hasInlineAsmMemConstraint - Return true if the inline asm instruction being |