mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
Use StringRef for MemoryBuffer identifier API (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -90,9 +90,9 @@ public:
|
||||
/// tail-allocated data.
|
||||
void operator delete(void *p) { ::operator delete(p); }
|
||||
|
||||
const char *getBufferIdentifier() const override {
|
||||
// The name is stored after the class itself.
|
||||
return reinterpret_cast<const char*>(this + 1);
|
||||
StringRef getBufferIdentifier() const override {
|
||||
// The name is stored after the class itself.
|
||||
return StringRef(reinterpret_cast<const char *>(this + 1));
|
||||
}
|
||||
|
||||
BufferKind getBufferKind() const override {
|
||||
@@ -221,9 +221,9 @@ public:
|
||||
/// tail-allocated data.
|
||||
void operator delete(void *p) { ::operator delete(p); }
|
||||
|
||||
const char *getBufferIdentifier() const override {
|
||||
StringRef getBufferIdentifier() const override {
|
||||
// The name is stored after the class itself.
|
||||
return reinterpret_cast<const char *>(this + 1);
|
||||
return StringRef(reinterpret_cast<const char *>(this + 1));
|
||||
}
|
||||
|
||||
BufferKind getBufferKind() const override {
|
||||
|
||||
Reference in New Issue
Block a user