From 356b79320b053b77562b47c076c753ab4c4d60d7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 04:46:29 +0000 Subject: [PATCH] Module's are no longer Value's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2347 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Value.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/include/llvm/Value.h b/include/llvm/Value.h index b30b4cc125f..004a8ff89e1 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -1,8 +1,7 @@ //===-- llvm/Value.h - Definition of the Value class -------------*- C++ -*--=// // // This file defines the very important Value class. This is subclassed by a -// bunch of other important classes, like Instruction, Function, Module, Type, -// etc... +// bunch of other important classes, like Instruction, Function, Type, etc... // // This file also defines the Use<> template for users of value. // @@ -25,7 +24,6 @@ class BasicBlock; class GlobalValue; class Function; class GlobalVariable; -class Module; class SymbolTable; template class ValueHolder; @@ -45,7 +43,6 @@ public: BasicBlockVal, // This is an instance of BasicBlock FunctionVal, // This is an instance of Function GlobalVariableVal, // This is an instance of GlobalVariable - ModuleVal, // This is an instance of Module }; private: @@ -238,11 +235,5 @@ template <> inline bool isa(const Value *Val) { template <> inline bool isa(Value *Val) { return isa(Val) || isa(Val); } -template <> inline bool isa(const Value *Val) { - return Val->getValueType() == Value::ModuleVal; -} -template <> inline bool isa(Value *Val) { - return Val->getValueType() == Value::ModuleVal; -} #endif