mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Add support for new style casts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -93,6 +93,11 @@ public:
|
||||
inline const Method *back() const { return MethodList.back(); }
|
||||
inline Method *back() { return MethodList.back(); }
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool isa(const Module *T) { return true; }
|
||||
static inline bool isa(const Value *V) {
|
||||
return V->getValueType() == Value::ModuleVal;
|
||||
}
|
||||
|
||||
// dropAllReferences() - This function causes all the subinstructions to "let
|
||||
// go" of all references that they are maintaining. This allows one to
|
||||
|
Reference in New Issue
Block a user