forked from OSchip/llvm-project
[Support] Remove MemoryBuffer::getNewMemBuffer
all callers have been switched the the Writable version (which does not require const_casting to be useful). llvm-svn: 322475
This commit is contained in:
parent
736a343e97
commit
e04f8ab3fb
|
@ -117,11 +117,6 @@ public:
|
|||
static std::unique_ptr<MemoryBuffer>
|
||||
getMemBufferCopy(StringRef InputData, const Twine &BufferName = "");
|
||||
|
||||
// TODO: Remove after all callers are switched to
|
||||
// WritableMemoryBuffer::getNewMemBuffer
|
||||
static std::unique_ptr<MemoryBuffer>
|
||||
getNewMemBuffer(size_t Size, StringRef BufferName = "");
|
||||
|
||||
/// Read all of stdin into a file buffer, and return it.
|
||||
static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
|
||||
|
||||
|
|
|
@ -139,11 +139,6 @@ MemoryBuffer::getMemBufferCopy(StringRef InputData, const Twine &BufferName) {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
std::unique_ptr<MemoryBuffer>
|
||||
MemoryBuffer::getNewMemBuffer(size_t Size, StringRef BufferName) {
|
||||
return WritableMemoryBuffer::getNewMemBuffer(Size, BufferName);
|
||||
}
|
||||
|
||||
ErrorOr<std::unique_ptr<MemoryBuffer>>
|
||||
MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize,
|
||||
bool RequiresNullTerminator) {
|
||||
|
|
Loading…
Reference in New Issue