#include "llvm/GlobalVariable.h"
#include "llvm/BasicBlock.h"
#include "llvm/iOther.h"
+#include "llvm/CodeGen/MachineInstr.h"
//===----------------------------------------------------------------------===//
// Method Implementation
Method::Method(const MethodType *Ty, const string &name)
: GlobalValue(PointerType::get(Ty), Value::MethodVal, name),
- SymTabValue(this), BasicBlocks(this), ArgumentList(this, this) {
+ SymTabValue(this), BasicBlocks(this), ArgumentList(this, this),
+ machineCode(new MachineCodeForMethod(this)) {
assert(::isa<MethodType>(Ty) && "Method signature must be of method type!");
}