diff options
Diffstat (limited to 'include/lldb/Utility/DataBufferLLVM.h')
-rw-r--r-- | include/lldb/Utility/DataBufferLLVM.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/lldb/Utility/DataBufferLLVM.h b/include/lldb/Utility/DataBufferLLVM.h index 737e2d019044e..0eb229cffbe24 100644 --- a/include/lldb/Utility/DataBufferLLVM.h +++ b/include/lldb/Utility/DataBufferLLVM.h @@ -17,7 +17,7 @@ #include <stdint.h> // for uint8_t, uint64_t namespace llvm { -class MemoryBuffer; +class WritableMemoryBuffer; class Twine; } @@ -28,10 +28,10 @@ public: ~DataBufferLLVM(); static std::shared_ptr<DataBufferLLVM> - CreateSliceFromPath(const llvm::Twine &Path, uint64_t Size, uint64_t Offset, bool Private = false); + CreateSliceFromPath(const llvm::Twine &Path, uint64_t Size, uint64_t Offset); static std::shared_ptr<DataBufferLLVM> - CreateFromPath(const llvm::Twine &Path, bool NullTerminate = false, bool Private = false); + CreateFromPath(const llvm::Twine &Path); uint8_t *GetBytes() override; const uint8_t *GetBytes() const override; @@ -42,10 +42,9 @@ public: private: /// \brief Construct a DataBufferLLVM from \p Buffer. \p Buffer must be a /// valid pointer. - explicit DataBufferLLVM(std::unique_ptr<llvm::MemoryBuffer> Buffer); - const uint8_t *GetBuffer() const; + explicit DataBufferLLVM(std::unique_ptr<llvm::WritableMemoryBuffer> Buffer); - std::unique_ptr<llvm::MemoryBuffer> Buffer; + std::unique_ptr<llvm::WritableMemoryBuffer> Buffer; }; } |