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) {
// 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) {
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; }
//
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) {
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
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) {
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
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) {