diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-08 22:03:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-08 22:03:57 +0000 |
commit | b7653df0853f06112b741be09f1b7ae5a6aa6fde (patch) | |
tree | a1e93978838a2c98fa8e3e1293d25055952c975b /lib/VMCore/BasicBlock.cpp | |
parent | 75cf7cf00d391ac6ca22d6240fa9d99ed427d1d5 (diff) |
s/Method/Function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | lib/VMCore/BasicBlock.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/VMCore/BasicBlock.cpp b/lib/VMCore/BasicBlock.cpp index 7c910918c6..e126d702b4 100644 --- a/lib/VMCore/BasicBlock.cpp +++ b/lib/VMCore/BasicBlock.cpp @@ -1,6 +1,6 @@ //===-- BasicBlock.cpp - Implement BasicBlock related functions --*- C++ -*--=// // -// This file implements the Method class for the VMCore library. +// This file implements the BasicBlock class for the VMCore library. // //===----------------------------------------------------------------------===// @@ -15,9 +15,9 @@ // Instantiate Templates - This ugliness is the price we have to pay // for having a ValueHolderImpl.h file seperate from ValueHolder.h! :( // -template class ValueHolder<Instruction, BasicBlock, Method>; +template class ValueHolder<Instruction, BasicBlock, Function>; -BasicBlock::BasicBlock(const std::string &name, Method *Parent) +BasicBlock::BasicBlock(const std::string &name, Function *Parent) : Value(Type::LabelTy, Value::BasicBlockVal, name), InstList(this, 0), machineInstrVec(new MachineCodeForBasicBlock) { if (Parent) @@ -32,7 +32,7 @@ BasicBlock::~BasicBlock() { // Specialize setName to take care of symbol table majik void BasicBlock::setName(const std::string &name, SymbolTable *ST) { - Method *P; + Function *P; assert((ST == 0 || (!getParent() || ST == getParent()->getSymbolTable())) && "Invalid symtab argument!"); if ((P = getParent()) && hasName()) P->getSymbolTable()->remove(this); @@ -40,7 +40,7 @@ void BasicBlock::setName(const std::string &name, SymbolTable *ST) { if (P && hasName()) P->getSymbolTable()->insert(this); } -void BasicBlock::setParent(Method *parent) { +void BasicBlock::setParent(Function *parent) { if (getParent() && hasName()) getParent()->getSymbolTable()->remove(this); |