mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
* Add virtual print methods
* s/Method/Function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e1cfc58c1
commit
5109f75f50
@ -104,6 +104,8 @@ public:
|
||||
const InstListType &getInstList() const { return InstList; }
|
||||
InstListType &getInstList() { return InstList; }
|
||||
|
||||
virtual void print(std::ostream &OS) const;
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const BasicBlock *BB) { return true; }
|
||||
static inline bool classof(const Value *V) {
|
||||
|
@ -47,6 +47,8 @@ public:
|
||||
// getNullConstant.
|
||||
virtual bool isNullValue() const = 0;
|
||||
|
||||
virtual void print(std::ostream &O) const;
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const Constant *) { return true; }
|
||||
static inline bool classof(const Value *V) {
|
||||
|
@ -83,6 +83,7 @@ public:
|
||||
inline const BasicBlock *back() const { return BasicBlocks.back(); }
|
||||
inline BasicBlock *back() { return BasicBlocks.back(); }
|
||||
|
||||
virtual void print(std::ostream &OS) const;
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const Function *) { return true; }
|
||||
|
@ -59,6 +59,8 @@ public:
|
||||
//
|
||||
inline bool isConstant() const { return isConstantGlobal; }
|
||||
|
||||
virtual void print(std::ostream &OS) const;
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const GlobalVariable *) { return true; }
|
||||
static inline bool classof(const Value *V) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
class Instruction : public User {
|
||||
BasicBlock *Parent;
|
||||
|
||||
friend class ValueHolder<Instruction,BasicBlock,Method>;
|
||||
friend class ValueHolder<Instruction,BasicBlock,Function>;
|
||||
inline void setParent(BasicBlock *P) { Parent = P; }
|
||||
protected:
|
||||
unsigned iType; // InstructionType
|
||||
@ -60,6 +60,8 @@ public:
|
||||
return iType >= FirstBinaryOp && iType < NumBinaryOps;
|
||||
}
|
||||
|
||||
virtual void print(std::ostream &OS) const;
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const Instruction *I) { return true; }
|
||||
static inline bool classof(const Value *V) {
|
||||
|
@ -120,6 +120,8 @@ public:
|
||||
return V->getValueType() == Value::ModuleVal;
|
||||
}
|
||||
|
||||
virtual void print(std::ostream &OS) const;
|
||||
|
||||
// dropAllReferences() - This function causes all the subinstructions to "let
|
||||
// go" of all references that they are maintaining. This allows one to
|
||||
// 'delete' a whole class at a time, even though there may be circular
|
||||
|
@ -66,6 +66,8 @@ public:
|
||||
inline const Function *getParent() const { return Parent; }
|
||||
inline Function *getParent() { return Parent; }
|
||||
|
||||
virtual void print(std::ostream &OS) const;
|
||||
|
||||
// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const FunctionArgument *) { return true; }
|
||||
static inline bool classof(const Value *V) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user