diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-03-23 22:47:28 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-03-23 22:47:28 +0000 |
| commit | d781ebd257acf03c5c87b801d7d1a0ae08236982 (patch) | |
| tree | 51ea2d8e595236f1e7e5e0cc3f6163af506bd6c6 /llvm | |
| parent | 6485258d9cbbf772bf415aab340d0ca7a6dc5f56 (diff) | |
| download | bcm5719-llvm-d781ebd257acf03c5c87b801d7d1a0ae08236982.tar.gz bcm5719-llvm-d781ebd257acf03c5c87b801d7d1a0ae08236982.zip | |
Update documentation, rename Method to Function, move typedef to Value.h for now.
llvm-svn: 1953
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Function.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/llvm/include/llvm/Function.h b/llvm/include/llvm/Function.h index e4a51a9273a..5be1dd4a3fd 100644 --- a/llvm/include/llvm/Function.h +++ b/llvm/include/llvm/Function.h @@ -1,15 +1,15 @@ -//===-- llvm/Method.h - Class to represent a single VM method ----*- C++ -*--=// +//===-- llvm/Function.h - Class to represent a single VM function -*- C++ -*-=// // -// This file contains the declaration of the Method class, which represents a -// single Method/function/procedure in the VM. +// This file contains the declaration of the Function class, which represents a +// single function/procedure in the VM. // -// Note that basic blocks themselves are Def's, because they are referenced -// by instructions like calls and can go in virtual function tables and stuff. +// Note that basic blocks in the method are value's, because they are referenced +// by instructions like calls and can go into virtual function tables and stuff. // //===----------------------------------------------------------------------===// -#ifndef LLVM_METHOD_H -#define LLVM_METHOD_H +#ifndef LLVM_FUNCTION_H +#define LLVM_FUNCTION_H #include "llvm/SymTabValue.h" #include "llvm/GlobalValue.h" @@ -21,7 +21,7 @@ class MethodArgument; class MethodType; class Module; -class Method : public GlobalValue, public SymTabValue { +class Function : public GlobalValue, public SymTabValue { public: typedef ValueHolder<MethodArgument, Method, Method> ArgumentListType; typedef ValueHolder<BasicBlock , Method, Method> BasicBlocksType; @@ -38,12 +38,12 @@ private: BasicBlocksType BasicBlocks; // The basic blocks ArgumentListType ArgumentList; // The formal arguments - friend class ValueHolder<Method, Module, Module>; + friend class ValueHolder<Function, Module, Module>; void setParent(Module *parent); public: - Method(const MethodType *Ty, bool isInternal, const std::string &Name = ""); - ~Method(); + Function(const MethodType *Ty, bool isInternal, const std::string &Name = ""); + ~Function(); // Specialize setName to handle symbol table majik... virtual void setName(const std::string &name, SymbolTable *ST = 0); @@ -89,7 +89,7 @@ public: // Methods for support type inquiry through isa, cast, and dyn_cast: - static inline bool classof(const Method *T) { return true; } + static inline bool classof(const Function *) { return true; } static inline bool classof(const Value *V) { return V->getValueType() == Value::MethodVal; } @@ -105,6 +105,4 @@ public: void dropAllReferences(); }; -typedef Method Function; - #endif |

