From 08272fbdb2dd227346789d9d9c4243dffe1ea3a6 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Mon, 8 Jul 2002 22:31:11 +0000 Subject: [PATCH] Moved MachineCodeForBB to be an annotation on BasicBlock. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2818 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/BasicBlock.h | 7 ------- lib/VMCore/BasicBlock.cpp | 5 +---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h index 8fc25d58d4a..2ea5e6ad553 100644 --- a/include/llvm/BasicBlock.h +++ b/include/llvm/BasicBlock.h @@ -25,7 +25,6 @@ #include "Support/ilist" class TerminatorInst; -class MachineCodeForBasicBlock; template class SuccIterator; // Successor Iterator template class PredIterator; @@ -41,7 +40,6 @@ public: typedef iplist InstListType; private : InstListType InstList; - MachineCodeForBasicBlock* machineInstrVec; BasicBlock *Prev, *Next; // Next and Prev links for our intrusive linked list void setParent(Function *parent) { InstList.setParent(parent); } @@ -83,11 +81,6 @@ public: TerminatorInst *getTerminator(); const TerminatorInst *const getTerminator() const; - // Machine code accessor... - inline MachineCodeForBasicBlock& getMachineInstrVec() const { - return *machineInstrVec; - } - // Provide a scoped predecessor and successor iterator typedef PredIterator pred_iterator; typedef PredIterator @@ -47,8 +46,7 @@ template SymbolTableListTraits; BasicBlock::BasicBlock(const std::string &name, Function *Parent) - : Value(Type::LabelTy, Value::BasicBlockVal, name), - machineInstrVec(new MachineCodeForBasicBlock) { + : Value(Type::LabelTy, Value::BasicBlockVal, name) { // Initialize the instlist... InstList.setItemParent(this); @@ -59,7 +57,6 @@ BasicBlock::BasicBlock(const std::string &name, Function *Parent) BasicBlock::~BasicBlock() { dropAllReferences(); InstList.clear(); - delete machineInstrVec; } // Specialize setName to take care of symbol table majik