From 79df7c0aaa18129e55968c8783ef8346807bd4af Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 26 Mar 2002 18:01:55 +0000 Subject: 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 --- lib/VMCore/Function.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/VMCore/Function.cpp') 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; -template class ValueHolder; +template class ValueHolder; +template class ValueHolder; 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(Ty) && "Method signature must be of method type!"); + assert(::isa(Ty) && "Function signature must be of method type!"); } Function::~Function() { -- cgit v1.2.3