mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Add LLVM_OVERRIDE to methods that override their base classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164471 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -108,14 +108,15 @@ class StreamableMemoryObject : public MemoryObject {
|
||||
class StreamingMemoryObject : public StreamableMemoryObject {
|
||||
public:
|
||||
StreamingMemoryObject(DataStreamer *streamer);
|
||||
virtual uint64_t getBase() const { return 0; }
|
||||
virtual uint64_t getExtent() const;
|
||||
virtual int readByte(uint64_t address, uint8_t* ptr) const;
|
||||
virtual uint64_t getBase() const LLVM_OVERRIDE { return 0; }
|
||||
virtual uint64_t getExtent() const LLVM_OVERRIDE;
|
||||
virtual int readByte(uint64_t address, uint8_t* ptr) const LLVM_OVERRIDE;
|
||||
virtual int readBytes(uint64_t address,
|
||||
uint64_t size,
|
||||
uint8_t* buf,
|
||||
uint64_t* copied) const ;
|
||||
virtual const uint8_t *getPointer(uint64_t address, uint64_t size) const {
|
||||
uint64_t* copied) const LLVM_OVERRIDE;
|
||||
virtual const uint8_t *getPointer(uint64_t address,
|
||||
uint64_t size) const LLVM_OVERRIDE {
|
||||
// This could be fixed by ensuring the bytes are fetched and making a copy,
|
||||
// requiring that the bitcode size be known, or otherwise ensuring that
|
||||
// the memory doesn't go away/get reallocated, but it's
|
||||
@ -123,8 +124,8 @@ public:
|
||||
assert(0 && "getPointer in streaming memory objects not allowed");
|
||||
return NULL;
|
||||
}
|
||||
virtual bool isValidAddress(uint64_t address) const;
|
||||
virtual bool isObjectEnd(uint64_t address) const;
|
||||
virtual bool isValidAddress(uint64_t address) const LLVM_OVERRIDE;
|
||||
virtual bool isObjectEnd(uint64_t address) const LLVM_OVERRIDE;
|
||||
|
||||
/// Drop s bytes from the front of the stream, pushing the positions of the
|
||||
/// remaining bytes down by s. This is used to skip past the bitcode header,
|
||||
|
Reference in New Issue
Block a user