diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-22 06:25:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-22 06:25:37 +0000 |
| commit | aec33da793ac4c78499f4a22aed001756e0d7103 (patch) | |
| tree | b77e2c09258c0c87cd7974c5c348abc495181a19 | |
| parent | c7a8eaf614588455c7640f1430a9c4b3bf0aab34 (diff) | |
| download | bcm5719-llvm-aec33da793ac4c78499f4a22aed001756e0d7103.tar.gz bcm5719-llvm-aec33da793ac4c78499f4a22aed001756e0d7103.zip | |
add an out-of-line virtual method to CmpInst to give it a home.
llvm-svn: 94161
| -rw-r--r-- | llvm/include/llvm/InstrTypes.h | 4 | ||||
| -rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/InstrTypes.h b/llvm/include/llvm/InstrTypes.h index 85aaa7f0592..b5cc65962e8 100644 --- a/llvm/include/llvm/InstrTypes.h +++ b/llvm/include/llvm/InstrTypes.h @@ -652,8 +652,7 @@ public: /// This class is the base class for the comparison instructions. /// @brief Abstract base class of comparison instructions. -// FIXME: why not derive from BinaryOperator? -class CmpInst: public Instruction { +class CmpInst : public Instruction { void *operator new(size_t, unsigned); // DO NOT IMPLEMENT CmpInst(); // do not implement protected: @@ -665,6 +664,7 @@ protected: Value *LHS, Value *RHS, const Twine &Name, BasicBlock *InsertAtEnd); + virtual void Anchor() const; // Out of line virtual method. public: /// This enumeration lists the possible predicates for CmpInst subclasses. /// Values in the range 0-31 are reserved for FCmpInst, while values in the diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 2619047cb30..8ff36cb6fbd 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -2714,6 +2714,8 @@ BitCastInst::BitCastInst( // CmpInst Classes //===----------------------------------------------------------------------===// +void CmpInst::Anchor() const {} + CmpInst::CmpInst(const Type *ty, OtherOps op, unsigned short predicate, Value *LHS, Value *RHS, const Twine &Name, Instruction *InsertBefore) |

