mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Module's are no longer Value's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2347 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
853737706f
commit
356b79320b
@ -1,8 +1,7 @@
|
|||||||
//===-- llvm/Value.h - Definition of the Value class -------------*- C++ -*--=//
|
//===-- llvm/Value.h - Definition of the Value class -------------*- C++ -*--=//
|
||||||
//
|
//
|
||||||
// This file defines the very important Value class. This is subclassed by a
|
// This file defines the very important Value class. This is subclassed by a
|
||||||
// bunch of other important classes, like Instruction, Function, Module, Type,
|
// bunch of other important classes, like Instruction, Function, Type, etc...
|
||||||
// etc...
|
|
||||||
//
|
//
|
||||||
// This file also defines the Use<> template for users of value.
|
// This file also defines the Use<> template for users of value.
|
||||||
//
|
//
|
||||||
@ -25,7 +24,6 @@ class BasicBlock;
|
|||||||
class GlobalValue;
|
class GlobalValue;
|
||||||
class Function;
|
class Function;
|
||||||
class GlobalVariable;
|
class GlobalVariable;
|
||||||
class Module;
|
|
||||||
class SymbolTable;
|
class SymbolTable;
|
||||||
template<class ValueSubclass, class ItemParentType, class SymTabType>
|
template<class ValueSubclass, class ItemParentType, class SymTabType>
|
||||||
class ValueHolder;
|
class ValueHolder;
|
||||||
@ -45,7 +43,6 @@ public:
|
|||||||
BasicBlockVal, // This is an instance of BasicBlock
|
BasicBlockVal, // This is an instance of BasicBlock
|
||||||
FunctionVal, // This is an instance of Function
|
FunctionVal, // This is an instance of Function
|
||||||
GlobalVariableVal, // This is an instance of GlobalVariable
|
GlobalVariableVal, // This is an instance of GlobalVariable
|
||||||
ModuleVal, // This is an instance of Module
|
|
||||||
};
|
};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -238,11 +235,5 @@ template <> inline bool isa<GlobalValue, const Value*>(const Value *Val) {
|
|||||||
template <> inline bool isa<GlobalValue, Value*>(Value *Val) {
|
template <> inline bool isa<GlobalValue, Value*>(Value *Val) {
|
||||||
return isa<GlobalVariable>(Val) || isa<Function>(Val);
|
return isa<GlobalVariable>(Val) || isa<Function>(Val);
|
||||||
}
|
}
|
||||||
template <> inline bool isa<Module, const Value*>(const Value *Val) {
|
|
||||||
return Val->getValueType() == Value::ModuleVal;
|
|
||||||
}
|
|
||||||
template <> inline bool isa<Module, Value*>(Value *Val) {
|
|
||||||
return Val->getValueType() == Value::ModuleVal;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user