mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Removed MachineCodeForMethod object and made it an annotation.
llvm-svn: 1183
This commit is contained in:
parent
821d1b8d30
commit
848709f127
@ -38,7 +38,6 @@ private:
|
||||
// Important things that make up a method!
|
||||
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);
|
||||
@ -69,11 +68,6 @@ 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
|
||||
//
|
||||
|
@ -13,7 +13,6 @@
|
||||
#include "llvm/GlobalVariable.h"
|
||||
#include "llvm/BasicBlock.h"
|
||||
#include "llvm/iOther.h"
|
||||
#include "llvm/CodeGen/MachineInstr.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Method Implementation
|
||||
@ -28,8 +27,7 @@ template class ValueHolder<BasicBlock , Method, Method>;
|
||||
|
||||
Method::Method(const MethodType *Ty, const string &name)
|
||||
: GlobalValue(PointerType::get(Ty), Value::MethodVal, name),
|
||||
SymTabValue(this), BasicBlocks(this), ArgumentList(this, this),
|
||||
machineCode(new MachineCodeForMethod(this)) {
|
||||
SymTabValue(this), BasicBlocks(this), ArgumentList(this, this) {
|
||||
assert(::isa<MethodType>(Ty) && "Method signature must be of method type!");
|
||||
}
|
||||
|
||||
@ -44,8 +42,6 @@ Method::~Method() {
|
||||
// Delete all of the method arguments and unlink from symbol table...
|
||||
ArgumentList.delete_all();
|
||||
ArgumentList.setParent(0);
|
||||
|
||||
delete machineCode;
|
||||
}
|
||||
|
||||
// Specialize setName to take care of symbol table majik
|
||||
|
Loading…
Reference in New Issue
Block a user