[llvm] r221757 - Remove unused method. NFC.

Rafael Espindola rafael.espindola at gmail.com
Tue Nov 11 18:27:41 PST 2014


Author: rafael
Date: Tue Nov 11 20:27:40 2014
New Revision: 221757

URL: http://llvm.org/viewvc/llvm-project?rev=221757&view=rev
Log:
Remove unused method. NFC.

Modified:
    llvm/trunk/include/llvm/Support/MemoryObject.h
    llvm/trunk/include/llvm/Support/StreamableMemoryObject.h
    llvm/trunk/lib/Support/MemoryObject.cpp
    llvm/trunk/lib/Support/StreamableMemoryObject.cpp

Modified: llvm/trunk/include/llvm/Support/MemoryObject.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MemoryObject.h?rev=221757&r1=221756&r2=221757&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/MemoryObject.h (original)
+++ llvm/trunk/include/llvm/Support/MemoryObject.h Tue Nov 11 20:27:40 2014
@@ -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).

Modified: llvm/trunk/include/llvm/Support/StreamableMemoryObject.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/StreamableMemoryObject.h?rev=221757&r1=221756&r2=221757&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/StreamableMemoryObject.h (original)
+++ llvm/trunk/include/llvm/Support/StreamableMemoryObject.h Tue Nov 11 20:27:40 2014
@@ -68,7 +68,6 @@ class StreamableMemoryObject : public Me
 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,

Modified: llvm/trunk/lib/Support/MemoryObject.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/MemoryObject.cpp?rev=221757&r1=221756&r2=221757&view=diff
==============================================================================
--- llvm/trunk/lib/Support/MemoryObject.cpp (original)
+++ llvm/trunk/lib/Support/MemoryObject.cpp Tue Nov 11 20:27:40 2014
@@ -17,7 +17,7 @@ int MemoryObject::readBytes(uint64_t add
                             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;

Modified: llvm/trunk/lib/Support/StreamableMemoryObject.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/StreamableMemoryObject.cpp?rev=221757&r1=221756&r2=221757&view=diff
==============================================================================
--- llvm/trunk/lib/Support/StreamableMemoryObject.cpp (original)
+++ llvm/trunk/lib/Support/StreamableMemoryObject.cpp Tue Nov 11 20:27:40 2014
@@ -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;
   }





More information about the llvm-commits mailing list