llvm.org GIT mirror llvm / c471cfc
[Support] Remove MemoryBuffer::getNewMemBuffer all callers have been switched the the Writable version (which does not require const_casting to be useful). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322475 91177308-0d34-0410-b5e6-96231b3b80d8 Pavel Labath 2 years ago
2 changed file(s) with 0 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
116116 static std::unique_ptr
117117 getMemBufferCopy(StringRef InputData, const Twine &BufferName = "");
118118
119 // TODO: Remove after all callers are switched to
120 // WritableMemoryBuffer::getNewMemBuffer
121 static std::unique_ptr
122 getNewMemBuffer(size_t Size, StringRef BufferName = "");
123
124119 /// Read all of stdin into a file buffer, and return it.
125120 static ErrorOr> getSTDIN();
126121
138138 return nullptr;
139139 }
140140
141 std::unique_ptr
142 MemoryBuffer::getNewMemBuffer(size_t Size, StringRef BufferName) {
143 return WritableMemoryBuffer::getNewMemBuffer(Size, BufferName);
144 }
145
146141 ErrorOr>
147142 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize,
148143 bool RequiresNullTerminator) {