[C++11] Add 'override' keyword to virtual methods that override their base class.
llvm-svn: 203345
This commit is contained in:
@@ -35,10 +35,10 @@ private:
|
||||
public:
|
||||
VectorMemoryObject(const ByteArrayTy &bytes) : Bytes(bytes) {}
|
||||
|
||||
uint64_t getBase() const { return 0; }
|
||||
uint64_t getExtent() const { return Bytes.size(); }
|
||||
uint64_t getBase() const override { return 0; }
|
||||
uint64_t getExtent() const override { return Bytes.size(); }
|
||||
|
||||
int readByte(uint64_t Addr, uint8_t *Byte) const {
|
||||
int readByte(uint64_t Addr, uint8_t *Byte) const override {
|
||||
if (Addr >= getExtent())
|
||||
return -1;
|
||||
*Byte = Bytes[Addr].first;
|
||||
|
||||
Reference in New Issue
Block a user