diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-12 02:27:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-12 02:27:40 +0000 |
commit | ef0482f50a8049735cce8aa2e1872ef25eb04995 (patch) | |
tree | ab23c30ed7fee39b6b2b2901ec45cd92c7c56943 /llvm | |
parent | 559586b6e59a75630b32d89133d442b4d2e11e0b (diff) | |
download | bcm5719-llvm-ef0482f50a8049735cce8aa2e1872ef25eb04995.tar.gz bcm5719-llvm-ef0482f50a8049735cce8aa2e1872ef25eb04995.zip |
Remove unused method. NFC.
llvm-svn: 221757
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/MemoryObject.h | 5 | ||||
-rw-r--r-- | llvm/include/llvm/Support/StreamableMemoryObject.h | 1 | ||||
-rw-r--r-- | llvm/lib/Support/MemoryObject.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Support/StreamableMemoryObject.cpp | 1 |
4 files changed, 1 insertions, 8 deletions
diff --git a/llvm/include/llvm/Support/MemoryObject.h b/llvm/include/llvm/Support/MemoryObject.h index 17aa9d2f675..fcc6bf79c4f 100644 --- a/llvm/include/llvm/Support/MemoryObject.h +++ b/llvm/include/llvm/Support/MemoryObject.h @@ -24,11 +24,6 @@ public: /// Destructor - Override as necessary. virtual ~MemoryObject(); - /// getBase - Returns the lowest valid address in the region. - /// - /// @result - The lowest valid address. - virtual uint64_t getBase() const = 0; - /// getExtent - Returns the size of the region in bytes. (The region is /// contiguous, so the highest valid address of the region /// is getBase() + getExtent() - 1). diff --git a/llvm/include/llvm/Support/StreamableMemoryObject.h b/llvm/include/llvm/Support/StreamableMemoryObject.h index a56f9540012..8094b53cc71 100644 --- a/llvm/include/llvm/Support/StreamableMemoryObject.h +++ b/llvm/include/llvm/Support/StreamableMemoryObject.h @@ -68,7 +68,6 @@ class StreamableMemoryObject : public MemoryObject { class StreamingMemoryObject : public StreamableMemoryObject { public: StreamingMemoryObject(DataStreamer *streamer); - uint64_t getBase() const override { return 0; } uint64_t getExtent() const override; int readByte(uint64_t address, uint8_t *ptr) const override; int readBytes(uint64_t address, uint64_t size, diff --git a/llvm/lib/Support/MemoryObject.cpp b/llvm/lib/Support/MemoryObject.cpp index 02b5b5034fb..fe5fa87109d 100644 --- a/llvm/lib/Support/MemoryObject.cpp +++ b/llvm/lib/Support/MemoryObject.cpp @@ -17,7 +17,7 @@ int MemoryObject::readBytes(uint64_t address, uint64_t size, uint8_t* buf) const { uint64_t current = address; - uint64_t limit = getBase() + getExtent(); + uint64_t limit = getExtent(); if (current + size > limit) return -1; diff --git a/llvm/lib/Support/StreamableMemoryObject.cpp b/llvm/lib/Support/StreamableMemoryObject.cpp index 5cb0680522d..7909c8e678c 100644 --- a/llvm/lib/Support/StreamableMemoryObject.cpp +++ b/llvm/lib/Support/StreamableMemoryObject.cpp @@ -25,7 +25,6 @@ public: assert(LastChar >= FirstChar && "Invalid start/end range"); } - uint64_t getBase() const override { return 0; } uint64_t getExtent() const override { return LastChar - FirstChar; } |