[llvm-commits] CVS: llvm/include/llvm/Value.h
LLVM
llvm at cs.uiuc.edu
Sun Jul 4 05:53:01 PDT 2004
Changes in directory llvm/include/llvm:
Value.h updated: 1.53 -> 1.54
---
Log message:
- Remove enumerator TypeVal since Values can't be types any more
- Remove isa_impl relationship between Types and Values
- Add OtherVal so "other" users can interact with Values.
---
Diffs of the changes: (+1 -5)
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.53 llvm/include/llvm/Value.h:1.54
--- llvm/include/llvm/Value.h:1.53 Sun Jun 27 13:38:24 2004
+++ llvm/include/llvm/Value.h Sun Jul 4 05:52:28 2004
@@ -20,7 +20,6 @@
#include "llvm/AbstractTypeUser.h"
#include "llvm/Use.h"
#include "Support/Casting.h"
-#include <iostream>
namespace llvm {
@@ -122,13 +121,13 @@
/// (and Instruction must be last).
///
enum ValueTy {
- TypeVal, // This is an instance of Type
ArgumentVal, // This is an instance of Argument
BasicBlockVal, // This is an instance of BasicBlock
FunctionVal, // This is an instance of Function
GlobalVariableVal, // This is an instance of GlobalVariable
ConstantVal, // This is an instance of Constant
InstructionVal, // This is an instance of Instruction
+ OtherVal, // This is an instance of something else
};
unsigned getValueType() const {
return SubclassID;
@@ -185,9 +184,6 @@
// isa - Provide some specializations of isa so that we don't have to include
// the subtype header files to test to see if the value is a subclass...
//
-template <> inline bool isa_impl<Type, Value>(const Value &Val) {
- return Val.getValueType() == Value::TypeVal;
-}
template <> inline bool isa_impl<Constant, Value>(const Value &Val) {
return Val.getValueType() == Value::ConstantVal;
}
More information about the llvm-commits
mailing list