Skip to content
Snippets Groups Projects
Commit 4e594beb authored by Vikram S. Adve's avatar Vikram S. Adve
Browse files

Added MachineCodeForMethod object in class Method.

llvm-svn: 949
parent 901da32e
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@
#include "llvm/GlobalVariable.h"
#include "llvm/BasicBlock.h"
#include "llvm/iOther.h"
#include "llvm/CodeGen/MachineInstr.h"
//===----------------------------------------------------------------------===//
// Method Implementation
......@@ -27,7 +28,8 @@ 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) {
SymTabValue(this), BasicBlocks(this), ArgumentList(this, this),
machineCode(new MachineCodeForMethod(this)) {
assert(::isa<MethodType>(Ty) && "Method signature must be of method type!");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment