diff options
author | Dan Gohman <gohman@apple.com> | 2009-11-23 17:42:46 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-11-23 17:42:46 +0000 |
commit | 66336edf823f8d64d77dc5ab2bbefc21ef82f6ec (patch) | |
tree | 291bee2f672596a2dcd73e8d77c1cf449915b0af /lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h | |
parent | 7776452a181202397fc1d70fab059f0faaafe0c7 (diff) |
Move some more code out of SelectionDAGBuild.cpp and into
FunctionLoweringInfo.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89674 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h index 09fc23f6ba..38e940953e 100644 --- a/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h +++ b/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.h @@ -27,10 +27,13 @@ namespace llvm { class AllocaInst; class BasicBlock; +class CallInst; class Function; +class GlobalVariable; class Instruction; class MachineBasicBlock; class MachineFunction; +class MachineModuleInfo; class MachineRegisterInfo; class TargetLowering; class Value; @@ -132,6 +135,13 @@ void ComputeValueVTs(const TargetLowering &TLI, const Type *Ty, SmallVectorImpl<uint64_t> *Offsets = 0, uint64_t StartingOffset = 0); +/// ExtractTypeInfo - Returns the type info, possibly bitcast, encoded in V. +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); + } // end namespace llvm #endif |