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 | f739fa8541804b5f89a2ed9a448e03616381d610 (patch) | |
tree | 4c087c687a341aac872fb0d3d90cc69748f3c4e4 /llvm/lib/VMCore/BasicBlock.cpp | |
parent | c0b4c7bc3296cf7dd5be9392800b855ceb48c44d (diff) | |
download | bcm5719-llvm-f739fa8541804b5f89a2ed9a448e03616381d610.tar.gz bcm5719-llvm-f739fa8541804b5f89a2ed9a448e03616381d610.zip |
s/Method/Function
llvm-svn: 2180
Diffstat (limited to 'llvm/lib/VMCore/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/VMCore/BasicBlock.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/BasicBlock.cpp b/llvm/lib/VMCore/BasicBlock.cpp index 7c910918c64..e126d702b40 100644 --- a/llvm/lib/VMCore/BasicBlock.cpp +++ b/llvm/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); |