diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-23 21:53:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-23 21:53:34 +0000 |
commit | 918fe08a5697040435ca979bacd381e83bcd94aa (patch) | |
tree | de30996f44fb8f77b8709e1fbca22a802cabdb63 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | e8a06e619a054ed1179a4e568c4b0773d9b9d36e (diff) | |
download | bcm5719-llvm-918fe08a5697040435ca979bacd381e83bcd94aa.tar.gz bcm5719-llvm-918fe08a5697040435ca979bacd381e83bcd94aa.zip |
Arrange for FastISel code to have access to the MachineModuleInfo
object. This will be needed to support debug info.
llvm-svn: 56508
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 3139cb3bc7f..4b773226072 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -450,7 +450,7 @@ FastISel::SelectOperator(User *I, unsigned Opcode) { UpdateValueMap(I, Reg); return true; } - + default: // Unhandled instruction. Halt "fast" selection and bail. return false; @@ -458,6 +458,7 @@ FastISel::SelectOperator(User *I, unsigned Opcode) { } FastISel::FastISel(MachineFunction &mf, + MachineModuleInfo *mmi, DenseMap<const Value *, unsigned> &vm, DenseMap<const BasicBlock *, MachineBasicBlock *> &bm, DenseMap<const AllocaInst *, int> &am) @@ -466,6 +467,7 @@ FastISel::FastISel(MachineFunction &mf, MBBMap(bm), StaticAllocaMap(am), MF(mf), + MMI(mmi), MRI(MF.getRegInfo()), MFI(*MF.getFrameInfo()), MCP(*MF.getConstantPool()), |