diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-03-10 05:29:18 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-03-10 05:29:18 +0000 |
commit | 3b89e528c421f98f3555d7d8f4072328259480a0 (patch) | |
tree | b336b5825737cf58b343e9d2da8a13df5b4a9daa /include | |
parent | 49e139b7f7adecc29109340c8592197453245139 (diff) | |
download | llvm-3b89e528c421f98f3555d7d8f4072328259480a0.tar.gz llvm-3b89e528c421f98f3555d7d8f4072328259480a0.tar.bz2 llvm-3b89e528c421f98f3555d7d8f4072328259480a0.tar.xz |
[C++11] Remove 'virtual' keyword from methods marked with 'override' keyword.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/IR/InstrTypes.h | 6 | ||||
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/IR/InstrTypes.h b/include/llvm/IR/InstrTypes.h index 35357b1458..e1a5130383 100644 --- a/include/llvm/IR/InstrTypes.h +++ b/include/llvm/IR/InstrTypes.h @@ -143,7 +143,7 @@ protected: const Twine &Name, Instruction *InsertBefore); BinaryOperator(BinaryOps iType, Value *S1, Value *S2, Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd); - virtual BinaryOperator *clone_impl() const override; + BinaryOperator *clone_impl() const override; public: // allocate space for exactly two operands void *operator new(size_t s) { @@ -385,7 +385,7 @@ DEFINE_TRANSPARENT_OPERAND_ACCESSORS(BinaryOperator, Value) /// if (isa<CastInst>(Instr)) { ... } /// @brief Base class of casting instructions. class CastInst : public UnaryInstruction { - virtual void anchor() override; + void anchor() override; protected: /// @brief Constructor with insert-before-instruction semantics for subclasses CastInst(Type *Ty, unsigned iType, Value *S, @@ -647,7 +647,7 @@ protected: Value *LHS, Value *RHS, const Twine &Name, BasicBlock *InsertAtEnd); - virtual void anchor() override; // Out of line virtual method. + void anchor() override; // 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/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 3d46a9098b..da236a548a 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -221,7 +221,7 @@ public: } SmallVectorImpl<char> &getContents() override { return Contents; } - virtual const SmallVectorImpl<char> &getContents() const override { + const SmallVectorImpl<char> &getContents() const override { return Contents; } |