From 4dea947926f166b91db700e5547336bdbfcec481 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Thu, 8 Nov 2001 04:38:58 +0000 Subject: [PATCH] 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 --- include/llvm/Function.h | 6 ------ lib/VMCore/Function.cpp | 6 +----- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/llvm/Function.h b/include/llvm/Function.h index 66ea4d272ef..a77deb6d7bc 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -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; 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 // diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 079f4b6d3ac..d3c18588cda 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; 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(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 -- 2.34.1