forked from OSchip/llvm-project
Added object of class MachineCodeForMethod.
llvm-svn: 953
This commit is contained in:
parent
21c3a754fc
commit
bdea601096
|
@ -20,6 +20,7 @@ class BasicBlock;
|
||||||
class MethodArgument;
|
class MethodArgument;
|
||||||
class MethodType;
|
class MethodType;
|
||||||
class Module;
|
class Module;
|
||||||
|
class MachineCodeForMethod;
|
||||||
|
|
||||||
class Method : public GlobalValue, public SymTabValue {
|
class Method : public GlobalValue, public SymTabValue {
|
||||||
public:
|
public:
|
||||||
|
@ -35,8 +36,9 @@ public:
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// Important things that make up a method!
|
// Important things that make up a method!
|
||||||
BasicBlocksType BasicBlocks; // The basic blocks
|
BasicBlocksType BasicBlocks; // The basic blocks
|
||||||
ArgumentListType ArgumentList; // The formal arguments
|
ArgumentListType ArgumentList; // The formal arguments
|
||||||
|
MachineCodeForMethod* machineCode; // Access to the generated native code
|
||||||
|
|
||||||
friend class ValueHolder<Method, Module, Module>;
|
friend class ValueHolder<Method, Module, Module>;
|
||||||
void setParent(Module *parent);
|
void setParent(Module *parent);
|
||||||
|
@ -67,6 +69,11 @@ public:
|
||||||
inline const BasicBlock *getEntryNode() const { return front(); }
|
inline const BasicBlock *getEntryNode() const { return front(); }
|
||||||
inline BasicBlock *getEntryNode() { return front(); }
|
inline BasicBlock *getEntryNode() { return front(); }
|
||||||
|
|
||||||
|
inline const MachineCodeForMethod
|
||||||
|
&getMachineCode() const { return *machineCode;}
|
||||||
|
inline MachineCodeForMethod
|
||||||
|
&getMachineCode() { return *machineCode;}
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// BasicBlock iterator forwarding functions
|
// BasicBlock iterator forwarding functions
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue