diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/InstrTypes.h | 3 | ||||
-rw-r--r-- | include/llvm/Instructions.h | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h index d96b20f..f7644e3 100644 --- a/include/llvm/InstrTypes.h +++ b/include/llvm/InstrTypes.h @@ -494,9 +494,6 @@ public: Value *S2, const std::string &Name, BasicBlock *InsertAtEnd); - /// @brief Implement superclass method. - virtual CmpInst *clone() const; - /// @brief Get the opcode casted to the right type OtherOps getOpcode() const { return static_cast<OtherOps>(Instruction::getOpcode()); diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index e4f7504..6773783 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -603,6 +603,8 @@ public: std::swap(Ops[0], Ops[1]); } + virtual ICmpInst *clone() const; + // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const ICmpInst *) { return true; } static inline bool classof(const Instruction *I) { @@ -725,6 +727,8 @@ public: std::swap(Ops[0], Ops[1]); } + virtual FCmpInst *clone() const; + /// @brief Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const FCmpInst *) { return true; } static inline bool classof(const Instruction *I) { |