summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-05 05:49:50 +0000
committerChris Lattner <sabre@nondot.org>2010-04-05 05:49:50 +0000
commit9f53dcd7b9314c8ebcd15f9de498e3e1aa5ba63c (patch)
tree65c34bc811ffb1d2087ca2c74ed869d6d0a6e186 /llvm/lib/CodeGen/MachineFunction.cpp
parenta3c9f210f4614e5ecd3b46cb984a2df5bf6bd19e (diff)
downloadbcm5719-llvm-9f53dcd7b9314c8ebcd15f9de498e3e1aa5ba63c.tar.gz
bcm5719-llvm-9f53dcd7b9314c8ebcd15f9de498e3e1aa5ba63c.zip
enhance MachineFunction to have a MMI pointer.
llvm-svn: 100414
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index beac0c630bb..e4ed7dbac4e 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -23,6 +23,7 @@
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineJumpTableInfo.h"
+#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/MC/MCAsmInfo.h"
@@ -51,8 +52,8 @@ void ilist_traits<MachineBasicBlock>::deleteNode(MachineBasicBlock *MBB) {
}
MachineFunction::MachineFunction(Function *F, const TargetMachine &TM,
- unsigned FunctionNum, MCContext &ctx)
- : Fn(F), Target(TM), Ctx(ctx) {
+ unsigned FunctionNum, MachineModuleInfo &mmi)
+ : Fn(F), Target(TM), Ctx(mmi.getContext()), MMI(mmi) {
if (TM.getRegisterInfo())
RegInfo = new (Allocator) MachineRegisterInfo(*TM.getRegisterInfo());
else
OpenPOWER on IntegriCloud