mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Added MachineCodeForMethod object in class Method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@949 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c023be29a4
commit
ac0ec47957
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user