forked from OSchip/llvm-project
add an out-of-line virtual method to CmpInst to give it a home.
llvm-svn: 94161
This commit is contained in:
parent
c7a8eaf614
commit
aec33da793
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue