aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-11-08 04:38:58 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-11-08 04:38:58 +0000
commit4dea947926f166b91db700e5547336bdbfcec481 (patch)
tree57130ce4bcfbafebd535f07f12908df267041677 /lib/VMCore
parent483c3ee18ec7105e4730b5c756bee2db5f586347 (diff)
downloadexternal_llvm-4dea947926f166b91db700e5547336bdbfcec481.zip
external_llvm-4dea947926f166b91db700e5547336bdbfcec481.tar.gz
external_llvm-4dea947926f166b91db700e5547336bdbfcec481.tar.bz2
Removed MachineCodeForMethod object and made it an annotation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Function.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp
index 079f4b6..d3c1858 100644
--- a/lib/VMCore/Function.cpp
+++ b/lib/VMCore/Function.cpp
@@ -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