diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-16 16:51:38 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-03-16 16:51:38 +0000 | 
| commit | c69102774f9739c81ae1285ed9ae62405071c63c (patch) | |
| tree | 458dd25677a43aef6390ecadb4423817f00e08b0 /include/llvm/CodeGen/MachineFunction.h | |
| parent | ea5b2dd11c0526581803e7eb58224a2eabf191e6 (diff) | |
Notes
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
| -rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 3c5b466da7bd..76ec9db5510d 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -33,6 +33,7 @@ class MachineRegisterInfo;  class MachineFrameInfo;  class MachineConstantPool;  class MachineJumpTableInfo; +class MCContext;  class Pass;  class TargetMachine;  class TargetRegisterClass; @@ -71,6 +72,7 @@ struct MachineFunctionInfo {  class MachineFunction {    Function *Fn;    const TargetMachine &Target; +  MCContext &Ctx;    // RegInfo - Information about each register in use in the function.    MachineRegisterInfo *RegInfo; @@ -121,13 +123,16 @@ class MachineFunction {    // The alignment of the function.    unsigned Alignment; -  MachineFunction(const MachineFunction &); // intentionally unimplemented -  void operator=(const MachineFunction&);   // intentionally unimplemented +  MachineFunction(const MachineFunction &); // DO NOT IMPLEMENT +  void operator=(const MachineFunction&);   // DO NOT IMPLEMENT  public: -  MachineFunction(Function *Fn, const TargetMachine &TM, unsigned FunctionNum); +  MachineFunction(Function *Fn, const TargetMachine &TM, unsigned FunctionNum, +                  MCContext &Ctx);    ~MachineFunction(); +  MCContext &getContext() const { return Ctx; } +      /// getFunction - Return the LLVM function that this machine code represents    ///    Function *getFunction() const { return Fn; }  | 
