diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:01:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-26 18:01:55 +0000 |
commit | 79df7c0aaa18129e55968c8783ef8346807bd4af (patch) | |
tree | 4269fd8c25425d5164ee295b9060838df090d03f /lib/VMCore/Function.cpp | |
parent | b0d04726db108a8e8c43939d6321924a37199e24 (diff) |
Change references from Method to Function
change references from MethodARgument to FunctionArgument
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1991 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index 286ef7fbe1..1ff87aabd9 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -1,6 +1,6 @@ -//===-- Method.cpp - Implement the Method class ------------------*- C++ -*--=// +//===-- Function.cpp - Implement the Global object classes -------*- C++ -*--=// // -// This file implements the Method & GlobalVariable classes for the VMCore +// This file implements the Function & GlobalVariable classes for the VMCore // library. // //===----------------------------------------------------------------------===// @@ -9,27 +9,27 @@ #include "llvm/DerivedTypes.h" #include "llvm/SymbolTable.h" #include "llvm/Module.h" -#include "llvm/Method.h" +#include "llvm/Function.h" #include "llvm/GlobalVariable.h" #include "llvm/BasicBlock.h" #include "llvm/iOther.h" //===----------------------------------------------------------------------===// -// Method Implementation +// Function Implementation //===----------------------------------------------------------------------===// // Instantiate Templates - This ugliness is the price we have to pay // for having a ValueHolderImpl.h file seperate from ValueHolder.h! :( // -template class ValueHolder<MethodArgument, Method, Method>; -template class ValueHolder<BasicBlock , Method, Method>; +template class ValueHolder<FunctionArgument, Function, Function>; +template class ValueHolder<BasicBlock , Function, Function>; Function::Function(const MethodType *Ty, bool isInternal, const std::string &name) - : GlobalValue(PointerType::get(Ty), Value::MethodVal, isInternal, name), + : GlobalValue(PointerType::get(Ty), Value::FunctionVal, isInternal, name), SymTabValue(this), BasicBlocks(this), ArgumentList(this, this) { - assert(::isa<MethodType>(Ty) && "Method signature must be of method type!"); + assert(::isa<MethodType>(Ty) && "Function signature must be of method type!"); } Function::~Function() { |