diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-04-05 05:49:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-04-05 05:49:50 +0000 |
| commit | 9f53dcd7b9314c8ebcd15f9de498e3e1aa5ba63c (patch) | |
| tree | 65c34bc811ffb1d2087ca2c74ed869d6d0a6e186 /llvm/include | |
| parent | a3c9f210f4614e5ecd3b46cb984a2df5bf6bd19e (diff) | |
| download | bcm5719-llvm-9f53dcd7b9314c8ebcd15f9de498e3e1aa5ba63c.tar.gz bcm5719-llvm-9f53dcd7b9314c8ebcd15f9de498e3e1aa5ba63c.zip | |
enhance MachineFunction to have a MMI pointer.
llvm-svn: 100414
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index 59b171850d0..b3609c2ea73 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -32,6 +32,7 @@ class MachineRegisterInfo; class MachineFrameInfo; class MachineConstantPool; class MachineJumpTableInfo; +class MachineModuleInfo; class MCContext; class Pass; class TargetMachine; @@ -72,7 +73,8 @@ class MachineFunction { Function *Fn; const TargetMachine &Target; MCContext &Ctx; - + MachineModuleInfo &MMI; + // RegInfo - Information about each register in use in the function. MachineRegisterInfo *RegInfo; @@ -107,8 +109,8 @@ class MachineFunction { typedef ilist<MachineBasicBlock> BasicBlockListType; BasicBlockListType BasicBlocks; - // Default debug location. Used to print out the debug label at the beginning - // of a function. + /// Default debug location. Used to print out the debug label at the beginning + /// of a function. DebugLoc DefaultDebugLoc; /// FunctionNumber - This provides a unique ID for each function emitted in @@ -116,17 +118,17 @@ class MachineFunction { /// unsigned FunctionNumber; - // The alignment of the function. + /// The alignment of the function. unsigned Alignment; MachineFunction(const MachineFunction &); // DO NOT IMPLEMENT void operator=(const MachineFunction&); // DO NOT IMPLEMENT - public: MachineFunction(Function *Fn, const TargetMachine &TM, unsigned FunctionNum, - MCContext &Ctx); + MachineModuleInfo &MMI); ~MachineFunction(); + MachineModuleInfo &getMMI() const { return MMI; } MCContext &getContext() const { return Ctx; } /// getFunction - Return the LLVM function that this machine code represents |

