mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
Don't repeat the function name in comments. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
21a2b5fd57
commit
9ea1ec3d14
@ -24,11 +24,11 @@
|
|||||||
#include <system_error>
|
#include <system_error>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
/// MemoryBuffer - This interface provides simple read-only access to a block
|
/// This interface provides simple read-only access to a block/ of memory, and
|
||||||
/// of memory, and provides simple methods for reading files and standard input
|
/// provides simple methods for reading files and standard input into a memory
|
||||||
/// into a memory buffer. In addition to basic access to the characters in the
|
/// buffer. In addition to basic access to the characters in the file, this
|
||||||
/// file, this interface guarantees you can read one character past the end of
|
/// interface guarantees you can read one character past the end of the file,
|
||||||
/// the file, and that this character will read as '\0'.
|
/// and that this character will read as '\0'.
|
||||||
///
|
///
|
||||||
/// The '\0' guarantee is needed to support an optimization -- it's intended to
|
/// The '\0' guarantee is needed to support an optimization -- it's intended to
|
||||||
/// be more efficient for clients which are reading all the data to stop
|
/// be more efficient for clients which are reading all the data to stop
|
||||||
@ -55,8 +55,8 @@ public:
|
|||||||
return StringRef(BufferStart, getBufferSize());
|
return StringRef(BufferStart, getBufferSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getBufferIdentifier - Return an identifier for this buffer, typically the
|
/// Return an identifier for this buffer, typically the filename it was read
|
||||||
/// filename it was read from.
|
/// from.
|
||||||
virtual const char *getBufferIdentifier() const {
|
virtual const char *getBufferIdentifier() const {
|
||||||
return "Unknown buffer";
|
return "Unknown buffer";
|
||||||
}
|
}
|
||||||
@ -94,27 +94,25 @@ public:
|
|||||||
getOpenFile(int FD, const char *Filename, uint64_t FileSize,
|
getOpenFile(int FD, const char *Filename, uint64_t FileSize,
|
||||||
bool RequiresNullTerminator = true, bool IsVolatileSize = false);
|
bool RequiresNullTerminator = true, bool IsVolatileSize = false);
|
||||||
|
|
||||||
/// getMemBuffer - Open the specified memory range as a MemoryBuffer. Note
|
/// Open the specified memory range as a MemoryBuffer. Note that InputData
|
||||||
/// that InputData must be null terminated if RequiresNullTerminator is true.
|
/// must be null terminated if RequiresNullTerminator is true.
|
||||||
static MemoryBuffer *getMemBuffer(StringRef InputData,
|
static MemoryBuffer *getMemBuffer(StringRef InputData,
|
||||||
StringRef BufferName = "",
|
StringRef BufferName = "",
|
||||||
bool RequiresNullTerminator = true);
|
bool RequiresNullTerminator = true);
|
||||||
|
|
||||||
/// getMemBufferCopy - Open the specified memory range as a MemoryBuffer,
|
/// Open the specified memory range as a MemoryBuffer, copying the contents
|
||||||
/// copying the contents and taking ownership of it. InputData does not
|
/// and taking ownership of it. InputData does not have to be null terminated.
|
||||||
/// have to be null terminated.
|
|
||||||
static MemoryBuffer *getMemBufferCopy(StringRef InputData,
|
static MemoryBuffer *getMemBufferCopy(StringRef InputData,
|
||||||
StringRef BufferName = "");
|
StringRef BufferName = "");
|
||||||
|
|
||||||
/// getNewMemBuffer - Allocate a new zero-initialized MemoryBuffer of the
|
/// Allocate a new zero-initialized MemoryBuffer of the specified size. Note
|
||||||
/// specified size. Note that the caller need not initialize the memory
|
/// that the caller need not initialize the memory allocated by this method.
|
||||||
/// allocated by this method. The memory is owned by the MemoryBuffer object.
|
/// The memory is owned by the MemoryBuffer object.
|
||||||
static MemoryBuffer *getNewMemBuffer(size_t Size, StringRef BufferName = "");
|
static MemoryBuffer *getNewMemBuffer(size_t Size, StringRef BufferName = "");
|
||||||
|
|
||||||
/// getNewUninitMemBuffer - Allocate a new MemoryBuffer of the specified size
|
/// Allocate a new MemoryBuffer of the specified size that is not initialized.
|
||||||
/// that is not initialized. Note that the caller should initialize the
|
/// Note that the caller should initialize the memory allocated by this
|
||||||
/// memory allocated by this method. The memory is owned by the MemoryBuffer
|
/// method. The memory is owned by the MemoryBuffer object.
|
||||||
/// object.
|
|
||||||
static MemoryBuffer *getNewUninitMemBuffer(size_t Size,
|
static MemoryBuffer *getNewUninitMemBuffer(size_t Size,
|
||||||
StringRef BufferName = "");
|
StringRef BufferName = "");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user