Added object of class MachineCodeForMethod.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 22 Oct 2001 13:58:08 +0000 (13:58 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Mon, 22 Oct 2001 13:58:08 +0000 (13:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@953 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Function.h

index 4267d32c1f4c0e5dd6be22949153ce7925132edd..3e07761dc755682a30d0505ad8b81e6cca5a2ae7 100644 (file)
@@ -20,6 +20,7 @@ class BasicBlock;
 class MethodArgument;
 class MethodType;
 class Module;
+class MachineCodeForMethod;
 
 class Method : public GlobalValue, public SymTabValue {
 public:
@@ -35,9 +36,10 @@ public:
 private:
 
   // Important things that make up a method!
-  BasicBlocksType  BasicBlocks;    // The basic blocks
-  ArgumentListType ArgumentList;   // The formal arguments
-
+  BasicBlocksType  BasicBlocks;         // The basic blocks
+  ArgumentListType ArgumentList;        // The formal arguments
+  MachineCodeForMethod* machineCode;    // Access to the generated native code
+  
   friend class ValueHolder<Method, Module, Module>;
   void setParent(Module *parent);
 
@@ -67,6 +69,11 @@ public:
   inline const BasicBlock       *getEntryNode() const   { return front(); }
   inline       BasicBlock       *getEntryNode()         { return front(); }
   
+  inline const MachineCodeForMethod
+                                &getMachineCode() const { return *machineCode;}
+  inline       MachineCodeForMethod
+                                &getMachineCode()       { return *machineCode;}
+  
   //===--------------------------------------------------------------------===//
   // BasicBlock iterator forwarding functions
   //