diff options
Diffstat (limited to 'llvm/include')
27 files changed, 110 insertions, 110 deletions
diff --git a/llvm/include/llvm/DebugInfo/CodeView/CVRecord.h b/llvm/include/llvm/DebugInfo/CodeView/CVRecord.h index 7cd6b45ef50..39433ddc8bf 100644 --- a/llvm/include/llvm/DebugInfo/CodeView/CVRecord.h +++ b/llvm/include/llvm/DebugInfo/CodeView/CVRecord.h @@ -14,8 +14,8 @@ #include "llvm/ADT/iterator_range.h" #include "llvm/DebugInfo/CodeView/CodeViewError.h" #include "llvm/DebugInfo/CodeView/RecordSerialization.h" -#include "llvm/DebugInfo/Msf/StreamReader.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/StreamReader.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/Support/Endian.h" namespace llvm { diff --git a/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstream.h b/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstream.h index 073031f84a1..8860ae42fc0 100644 --- a/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstream.h +++ b/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstream.h @@ -11,8 +11,8 @@ #define LLVM_DEBUGINFO_CODEVIEW_MODULESUBSTREAM_H #include "llvm/DebugInfo/CodeView/CodeView.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" diff --git a/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h b/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h index e1bc68f80e2..bbdf82060c1 100644 --- a/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h +++ b/llvm/include/llvm/DebugInfo/CodeView/ModuleSubstreamVisitor.h @@ -14,8 +14,8 @@ #include "llvm/DebugInfo/CodeView/CodeViewError.h" #include "llvm/DebugInfo/CodeView/Line.h" #include "llvm/DebugInfo/CodeView/ModuleSubstream.h" -#include "llvm/DebugInfo/Msf/StreamReader.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/StreamReader.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" namespace llvm { namespace codeview { diff --git a/llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h b/llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h index b3974ecb862..21ad71fb0ac 100644 --- a/llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h +++ b/llvm/include/llvm/DebugInfo/CodeView/SymbolRecord.h @@ -16,7 +16,7 @@ #include "llvm/DebugInfo/CodeView/CodeView.h" #include "llvm/DebugInfo/CodeView/RecordSerialization.h" #include "llvm/DebugInfo/CodeView/TypeIndex.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" diff --git a/llvm/include/llvm/DebugInfo/Msf/ByteStream.h b/llvm/include/llvm/DebugInfo/MSF/ByteStream.h index 78ea1111975..737693aa009 100644 --- a/llvm/include/llvm/DebugInfo/Msf/ByteStream.h +++ b/llvm/include/llvm/DebugInfo/MSF/ByteStream.h @@ -12,8 +12,8 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" -#include "llvm/DebugInfo/Msf/MsfError.h" -#include "llvm/DebugInfo/Msf/StreamInterface.h" +#include "llvm/DebugInfo/MSF/MSFError.h" +#include "llvm/DebugInfo/MSF/StreamInterface.h" #include "llvm/Support/Error.h" #include "llvm/Support/FileOutputBuffer.h" #include "llvm/Support/MemoryBuffer.h" @@ -32,16 +32,16 @@ public: Error readBytes(uint32_t Offset, uint32_t Size, ArrayRef<uint8_t> &Buffer) const override { if (Offset > Data.size()) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); if (Data.size() < Size + Offset) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); Buffer = Data.slice(Offset, Size); return Error::success(); } Error readLongestContiguousChunk(uint32_t Offset, ArrayRef<uint8_t> &Buffer) const override { if (Offset >= Data.size()) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); Buffer = Data.slice(Offset); return Error::success(); } @@ -90,9 +90,9 @@ public: Error writeBytes(uint32_t Offset, ArrayRef<uint8_t> Buffer) const override { if (Data.size() < Buffer.size()) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); if (Offset > Buffer.size() - Data.size()) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); uint8_t *DataPtr = const_cast<uint8_t *>(Data.data()); ::memcpy(DataPtr + Offset, Buffer.data(), Buffer.size()); @@ -121,7 +121,7 @@ private: Error commit() const override { if (FileBuffer->commit()) - return llvm::make_error<MsfError>(msf_error_code::not_writable); + return llvm::make_error<MSFError>(msf_error_code::not_writable); return Error::success(); } diff --git a/llvm/include/llvm/DebugInfo/Msf/IMsfFile.h b/llvm/include/llvm/DebugInfo/MSF/IMsfFile.h index 1c7eeb92d28..6c5754f11b9 100644 --- a/llvm/include/llvm/DebugInfo/Msf/IMsfFile.h +++ b/llvm/include/llvm/DebugInfo/MSF/IMsfFile.h @@ -1,4 +1,4 @@ -//===- IMsfFile.h - Abstract base class for an MSF file ---------*- C++ -*-===// +//===- IMSFFile.h - Abstract base class for an MSF file ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -12,7 +12,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" @@ -21,9 +21,9 @@ namespace llvm { namespace msf { -class IMsfFile { +class IMSFFile { public: - virtual ~IMsfFile() {} + virtual ~IMSFFile() {} virtual uint32_t getBlockSize() const = 0; virtual uint32_t getBlockCount() const = 0; diff --git a/llvm/include/llvm/DebugInfo/Msf/MappedBlockStream.h b/llvm/include/llvm/DebugInfo/MSF/MappedBlockStream.h index f66826ba804..aef6b011153 100644 --- a/llvm/include/llvm/DebugInfo/Msf/MappedBlockStream.h +++ b/llvm/include/llvm/DebugInfo/MSF/MappedBlockStream.h @@ -1,4 +1,4 @@ -//===- MappedBlockStream.h - Discontiguous stream data in an Msf -*- C++ +//===- MappedBlockStream.h - Discontiguous stream data in an MSF -*- C++ //-*-===// // // The LLVM Compiler Infrastructure @@ -14,8 +14,8 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/STLExtras.h" -#include "llvm/DebugInfo/Msf/MsfStreamLayout.h" -#include "llvm/DebugInfo/Msf/StreamInterface.h" +#include "llvm/DebugInfo/MSF/MSFStreamLayout.h" +#include "llvm/DebugInfo/MSF/StreamInterface.h" #include "llvm/Support/Allocator.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" @@ -25,16 +25,16 @@ namespace llvm { namespace msf { -struct MsfLayout; +struct MSFLayout; -/// MappedBlockStream represents data stored in an Msf file into chunks of a +/// MappedBlockStream represents data stored in an MSF file into chunks of a /// particular size (called the Block Size), and whose chunks may not be -/// necessarily contiguous. The arrangement of these chunks within the file -/// is described by some other metadata contained within the Msf file. In -/// the case of a standard Msf Stream, the layout of the stream's blocks -/// is described by the Msf "directory", but in the case of the directory +/// necessarily contiguous. The arrangement of these chunks MSF the file +/// is described by some other metadata contained within the MSF file. In +/// the case of a standard MSF Stream, the layout of the stream's blocks +/// is described by the MSF "directory", but in the case of the directory /// itself, the layout is described by an array at a fixed location within -/// the Msf. MappedBlockStream provides methods for reading from and writing +/// the MSF. MappedBlockStream provides methods for reading from and writing /// to one of these streams transparently, as if it were a contiguous sequence /// of bytes. class MappedBlockStream : public ReadableStream { @@ -43,14 +43,14 @@ class MappedBlockStream : public ReadableStream { public: static std::unique_ptr<MappedBlockStream> createStream(uint32_t BlockSize, uint32_t NumBlocks, - const MsfStreamLayout &Layout, const ReadableStream &MsfData); + const MSFStreamLayout &Layout, const ReadableStream &MsfData); static std::unique_ptr<MappedBlockStream> - createIndexedStream(const MsfLayout &Layout, const ReadableStream &MsfData, + createIndexedStream(const MSFLayout &Layout, const ReadableStream &MsfData, uint32_t StreamIndex); static std::unique_ptr<MappedBlockStream> - createDirectoryStream(const MsfLayout &Layout, const ReadableStream &MsfData); + createDirectoryStream(const MSFLayout &Layout, const ReadableStream &MsfData); Error readBytes(uint32_t Offset, uint32_t Size, ArrayRef<uint8_t> &Buffer) const override; @@ -71,11 +71,11 @@ public: protected: MappedBlockStream(uint32_t BlockSize, uint32_t NumBlocks, - const MsfStreamLayout &StreamLayout, + const MSFStreamLayout &StreamLayout, const ReadableStream &MsfData); private: - const MsfStreamLayout &getStreamLayout() const { return StreamLayout; } + const MSFStreamLayout &getStreamLayout() const { return StreamLayout; } void fixCacheAfterWrite(uint32_t Offset, ArrayRef<uint8_t> Data) const; Error readBytes(uint32_t Offset, MutableArrayRef<uint8_t> Buffer) const; @@ -84,7 +84,7 @@ private: const uint32_t BlockSize; const uint32_t NumBlocks; - const MsfStreamLayout StreamLayout; + const MSFStreamLayout StreamLayout; const ReadableStream &MsfData; typedef MutableArrayRef<uint8_t> CacheEntry; @@ -96,14 +96,14 @@ class WritableMappedBlockStream : public WritableStream { public: static std::unique_ptr<WritableMappedBlockStream> createStream(uint32_t BlockSize, uint32_t NumBlocks, - const MsfStreamLayout &Layout, const WritableStream &MsfData); + const MSFStreamLayout &Layout, const WritableStream &MsfData); static std::unique_ptr<WritableMappedBlockStream> - createIndexedStream(const MsfLayout &Layout, const WritableStream &MsfData, + createIndexedStream(const MSFLayout &Layout, const WritableStream &MsfData, uint32_t StreamIndex); static std::unique_ptr<WritableMappedBlockStream> - createDirectoryStream(const MsfLayout &Layout, const WritableStream &MsfData); + createDirectoryStream(const MSFLayout &Layout, const WritableStream &MsfData); Error readBytes(uint32_t Offset, uint32_t Size, ArrayRef<uint8_t> &Buffer) const override; @@ -115,7 +115,7 @@ public: Error commit() const override; - const MsfStreamLayout &getStreamLayout() const { + const MSFStreamLayout &getStreamLayout() const { return ReadInterface.getStreamLayout(); } uint32_t getBlockSize() const { return ReadInterface.getBlockSize(); } @@ -124,7 +124,7 @@ public: protected: WritableMappedBlockStream(uint32_t BlockSize, uint32_t NumBlocks, - const MsfStreamLayout &StreamLayout, + const MSFStreamLayout &StreamLayout, const WritableStream &MsfData); private: diff --git a/llvm/include/llvm/DebugInfo/Msf/MsfBuilder.h b/llvm/include/llvm/DebugInfo/MSF/MsfBuilder.h index 0ccdd6f0149..bf29e626339 100644 --- a/llvm/include/llvm/DebugInfo/Msf/MsfBuilder.h +++ b/llvm/include/llvm/DebugInfo/MSF/MsfBuilder.h @@ -13,7 +13,7 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/BitVector.h" -#include "llvm/DebugInfo/Msf/MsfCommon.h" +#include "llvm/DebugInfo/MSF/MSFCommon.h" #include "llvm/Support/Allocator.h" #include "llvm/Support/Endian.h" @@ -24,15 +24,15 @@ namespace llvm { namespace msf { -class MsfBuilder { +class MSFBuilder { public: - /// \brief Create a new `MsfBuilder`. + /// \brief Create a new `MSFBuilder`. /// /// \param BlockSize The internal block size used by the PDB file. See /// isValidBlockSize() for a list of valid block sizes. /// /// \param MinBlockCount Causes the builder to reserve up front space for - /// at least `MinBlockCount` blocks. This is useful when using `MsfBuilder` + /// at least `MinBlockCount` blocks. This is useful when using `MSFBuilder` /// to read an existing MSF that you want to write back out later. The /// original MSF file's SuperBlock contains the exact number of blocks used /// by the file, so is a good hint as to how many blocks the new MSF file @@ -54,7 +54,7 @@ public: /// failed. Currently the only way this can fail is if an invalid block size /// is specified, or `MinBlockCount` does not leave enough room for the /// mandatory reserved blocks required by an MSF file. - static Expected<MsfBuilder> create(BumpPtrAllocator &Allocator, + static Expected<MSFBuilder> create(BumpPtrAllocator &Allocator, uint32_t BlockSize, uint32_t MinBlockCount = 0, bool CanGrow = true); @@ -81,7 +81,7 @@ public: /// Update the size of an existing stream. This will allocate or deallocate /// blocks as needed to match the requested size. This can fail if `CanGrow` - /// was set to false when initializing the `MsfBuilder`. + /// was set to false when initializing the `MSFBuilder`. Error setStreamSize(uint32_t Idx, uint32_t Size); /// Get the total number of streams in the MSF layout. This should return 1 @@ -111,10 +111,10 @@ public: /// Finalize the layout and build the headers and structures that describe the /// MSF layout and can be written directly to the MSF file. - Expected<MsfLayout> build(); + Expected<MSFLayout> build(); private: - MsfBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow, + MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow, BumpPtrAllocator &Allocator); Error allocateBlocks(uint32_t NumBlocks, MutableArrayRef<uint32_t> Blocks); diff --git a/llvm/include/llvm/DebugInfo/Msf/MsfCommon.h b/llvm/include/llvm/DebugInfo/MSF/MsfCommon.h index 86f20bd1711..58e6a1af426 100644 --- a/llvm/include/llvm/DebugInfo/Msf/MsfCommon.h +++ b/llvm/include/llvm/DebugInfo/MSF/MsfCommon.h @@ -1,4 +1,4 @@ -//===- MsfCommon.h - Common types and functions for MSF files ---*- C++ -*-===// +//===- MSFCommon.h - Common types and functions for MSF files ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -48,8 +48,8 @@ struct SuperBlock { support::ulittle32_t BlockMapAddr; }; -struct MsfLayout { - MsfLayout() : SB(nullptr) {} +struct MSFLayout { + MSFLayout() : SB(nullptr) {} const SuperBlock *SB; ArrayRef<support::ulittle32_t> DirectoryBlocks; ArrayRef<support::ulittle32_t> StreamSizes; diff --git a/llvm/include/llvm/DebugInfo/Msf/MsfError.h b/llvm/include/llvm/DebugInfo/MSF/MsfError.h index 4cdbaec3962..e66aeca3cd4 100644 --- a/llvm/include/llvm/DebugInfo/Msf/MsfError.h +++ b/llvm/include/llvm/DebugInfo/MSF/MsfError.h @@ -1,4 +1,4 @@ -//===- MsfError.h - Error extensions for Msf Files --------------*- C++ -*-===// +//===- MSFError.h - Error extensions for MSF Files --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -26,12 +26,12 @@ enum class msf_error_code { }; /// Base class for errors originating when parsing raw PDB files -class MsfError : public ErrorInfo<MsfError> { +class MSFError : public ErrorInfo<MSFError> { public: static char ID; - MsfError(msf_error_code C); - MsfError(const std::string &Context); - MsfError(msf_error_code C, const std::string &Context); + MSFError(msf_error_code C); + MSFError(const std::string &Context); + MSFError(msf_error_code C, const std::string &Context); void log(raw_ostream &OS) const override; const std::string &getErrorMessage() const; diff --git a/llvm/include/llvm/DebugInfo/Msf/MsfStreamLayout.h b/llvm/include/llvm/DebugInfo/MSF/MsfStreamLayout.h index 68a3ca33518..1b987aa04cf 100644 --- a/llvm/include/llvm/DebugInfo/Msf/MsfStreamLayout.h +++ b/llvm/include/llvm/DebugInfo/MSF/MsfStreamLayout.h @@ -1,4 +1,4 @@ -//===- MsfStreamLayout.h - Describes the layout of a stream -----*- C++ -*-===// +//===- MSFStreamLayout.h - Describes the layout of a stream -----*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -18,13 +18,13 @@ namespace llvm { namespace msf { -/// \brief Describes the layout of a stream in an Msf layout. A "stream" here -/// is defined as any logical unit of data which may be arranged inside the Msf +/// \brief Describes the layout of a stream in an MSF layout. A "stream" here +/// is defined as any logical unit of data which may be arranged inside the MSF /// file as a sequence of (possibly discontiguous) blocks. When we want to read -/// from a particular Msf Stream, we fill out a stream layout structure and the -/// reader uses it to determine which blocks in the underlying Msf file contain +/// from a particular MSF Stream, we fill out a stream layout structure and the +/// reader uses it to determine which blocks in the underlying MSF file contain /// the data, so that it can be pieced together in the right order. -class MsfStreamLayout { +class MSFStreamLayout { public: uint32_t Length; ArrayRef<support::ulittle32_t> Blocks; diff --git a/llvm/include/llvm/DebugInfo/Msf/StreamArray.h b/llvm/include/llvm/DebugInfo/MSF/StreamArray.h index 569fb9bdd89..88f41ddfb52 100644 --- a/llvm/include/llvm/DebugInfo/Msf/StreamArray.h +++ b/llvm/include/llvm/DebugInfo/MSF/StreamArray.h @@ -10,7 +10,7 @@ #ifndef LLVM_DEBUGINFO_MSF_STREAMARRAY_H #define LLVM_DEBUGINFO_MSF_STREAMARRAY_H -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/Support/Error.h" #include <functional> diff --git a/llvm/include/llvm/DebugInfo/Msf/StreamInterface.h b/llvm/include/llvm/DebugInfo/MSF/StreamInterface.h index 78347e46c22..78347e46c22 100644 --- a/llvm/include/llvm/DebugInfo/Msf/StreamInterface.h +++ b/llvm/include/llvm/DebugInfo/MSF/StreamInterface.h diff --git a/llvm/include/llvm/DebugInfo/Msf/StreamReader.h b/llvm/include/llvm/DebugInfo/MSF/StreamReader.h index 31f437f87c9..ac43aaa8447 100644 --- a/llvm/include/llvm/DebugInfo/Msf/StreamReader.h +++ b/llvm/include/llvm/DebugInfo/MSF/StreamReader.h @@ -11,10 +11,10 @@ #define LLVM_DEBUGINFO_MSF_STREAMREADER_H #include "llvm/ADT/ArrayRef.h" -#include "llvm/DebugInfo/Msf/MsfError.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamInterface.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/MSFError.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamInterface.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" @@ -61,7 +61,7 @@ public: } if (NumElements > UINT32_MAX / sizeof(T)) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); if (auto EC = readBytes(Bytes, NumElements * sizeof(T))) return EC; @@ -86,9 +86,9 @@ public: } uint32_t Length = NumItems * sizeof(T); if (Length / sizeof(T) != NumItems) - return make_error<MsfError>(msf_error_code::invalid_format); + return make_error<MSFError>(msf_error_code::invalid_format); if (Offset + Length > Stream.getLength()) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); ReadableStreamRef View = Stream.slice(Offset, Length); Array = FixedStreamArray<T>(View); Offset += Length; diff --git a/llvm/include/llvm/DebugInfo/Msf/StreamRef.h b/llvm/include/llvm/DebugInfo/MSF/StreamRef.h index ff280c03507..c25fd381ef2 100644 --- a/llvm/include/llvm/DebugInfo/Msf/StreamRef.h +++ b/llvm/include/llvm/DebugInfo/MSF/StreamRef.h @@ -10,8 +10,8 @@ #ifndef LLVM_DEBUGINFO_MSF_STREAMREF_H #define LLVM_DEBUGINFO_MSF_STREAMREF_H -#include "llvm/DebugInfo/Msf/MsfError.h" -#include "llvm/DebugInfo/Msf/StreamInterface.h" +#include "llvm/DebugInfo/MSF/MSFError.h" +#include "llvm/DebugInfo/MSF/StreamInterface.h" namespace llvm { namespace msf { @@ -76,9 +76,9 @@ public: Error readBytes(uint32_t Offset, uint32_t Size, ArrayRef<uint8_t> &Buffer) const { if (ViewOffset + Offset < Offset) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); if (Size + Offset > Length) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); return Stream->readBytes(ViewOffset + Offset, Size, Buffer); } @@ -87,7 +87,7 @@ public: Error readLongestContiguousChunk(uint32_t Offset, ArrayRef<uint8_t> &Buffer) const { if (Offset >= Length) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); if (auto EC = Stream->readLongestContiguousChunk(Offset, Buffer)) return EC; @@ -117,7 +117,7 @@ public: Error writeBytes(uint32_t Offset, ArrayRef<uint8_t> Data) const { if (Data.size() + Offset > Length) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); return Stream->writeBytes(ViewOffset + Offset, Data); } diff --git a/llvm/include/llvm/DebugInfo/Msf/StreamWriter.h b/llvm/include/llvm/DebugInfo/MSF/StreamWriter.h index 04194892e9b..88043c737bd 100644 --- a/llvm/include/llvm/DebugInfo/Msf/StreamWriter.h +++ b/llvm/include/llvm/DebugInfo/MSF/StreamWriter.h @@ -11,10 +11,10 @@ #define LLVM_DEBUGINFO_MSF_STREAMWRITER_H #include "llvm/ADT/ArrayRef.h" -#include "llvm/DebugInfo/Msf/MsfError.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamInterface.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/MSFError.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamInterface.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" @@ -54,7 +54,7 @@ public: return Error::success(); if (Array.size() > UINT32_MAX / sizeof(T)) - return make_error<MsfError>(msf_error_code::insufficient_buffer); + return make_error<MSFError>(msf_error_code::insufficient_buffer); return writeBytes( ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(Array.data()), diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStream.h b/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStream.h index 7802f48be2c..c97ca32ab43 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStream.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStream.h @@ -11,9 +11,9 @@ #define LLVM_DEBUGINFO_PDB_RAW_PDBDBISTREAM_H #include "llvm/DebugInfo/CodeView/ModuleSubstream.h" -#include "llvm/DebugInfo/Msf/MappedBlockStream.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/MappedBlockStream.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/DebugInfo/PDB/PDBTypes.h" #include "llvm/DebugInfo/PDB/Raw/ModInfo.h" #include "llvm/DebugInfo/PDB/Raw/NameHashTable.h" diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h b/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h index a3c8fc5dbbb..9b93efef560 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/DbiStreamBuilder.h @@ -14,8 +14,8 @@ #include "llvm/ADT/StringSet.h" #include "llvm/Support/Error.h" -#include "llvm/DebugInfo/Msf/ByteStream.h" -#include "llvm/DebugInfo/Msf/StreamReader.h" +#include "llvm/DebugInfo/MSF/ByteStream.h" +#include "llvm/DebugInfo/MSF/StreamReader.h" #include "llvm/DebugInfo/PDB/PDBTypes.h" #include "llvm/DebugInfo/PDB/Raw/PDBFile.h" #include "llvm/DebugInfo/PDB/Raw/RawConstants.h" @@ -48,7 +48,7 @@ public: Expected<std::unique_ptr<DbiStream>> build(PDBFile &File, const msf::WritableStream &Buffer); - Error commit(const msf::MsfLayout &Layout, + Error commit(const msf::MSFLayout &Layout, const msf::WritableStream &Buffer) const; private: diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStream.h b/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStream.h index e71c63d0552..6b8b94ff1a3 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStream.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStream.h @@ -11,7 +11,7 @@ #define LLVM_DEBUGINFO_PDB_RAW_PDBINFOSTREAM_H #include "llvm/ADT/StringMap.h" -#include "llvm/DebugInfo/Msf/MappedBlockStream.h" +#include "llvm/DebugInfo/MSF/MappedBlockStream.h" #include "llvm/DebugInfo/PDB/PDBTypes.h" #include "llvm/DebugInfo/PDB/Raw/NameMap.h" #include "llvm/DebugInfo/PDB/Raw/RawConstants.h" diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h b/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h index f3c3eadcec6..870c5d528a5 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/InfoStreamBuilder.h @@ -43,7 +43,7 @@ public: Expected<std::unique_ptr<InfoStream>> build(PDBFile &File, const msf::WritableStream &Buffer); - Error commit(const msf::MsfLayout &Layout, + Error commit(const msf::MSFLayout &Layout, const msf::WritableStream &Buffer) const; private: diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/ModInfo.h b/llvm/include/llvm/DebugInfo/PDB/Raw/ModInfo.h index e48b6aa15fa..b084f5b569f 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/ModInfo.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/ModInfo.h @@ -11,8 +11,8 @@ #define LLVM_DEBUGINFO_PDB_RAW_MODINFO_H #include "llvm/ADT/StringRef.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/DebugInfo/PDB/Raw/RawTypes.h" #include "llvm/Support/Endian.h" #include <cstdint> diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/ModStream.h b/llvm/include/llvm/DebugInfo/PDB/Raw/ModStream.h index 57e84edc1bb..f5296e08169 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/ModStream.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/ModStream.h @@ -14,9 +14,9 @@ #include "llvm/DebugInfo/CodeView/CVRecord.h" #include "llvm/DebugInfo/CodeView/ModuleSubstream.h" #include "llvm/DebugInfo/CodeView/SymbolRecord.h" -#include "llvm/DebugInfo/Msf/MappedBlockStream.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/MappedBlockStream.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/Support/Error.h" namespace llvm { diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/NameHashTable.h b/llvm/include/llvm/DebugInfo/PDB/Raw/NameHashTable.h index c9dd95d01c1..00d022d4d8e 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/NameHashTable.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/NameHashTable.h @@ -12,8 +12,8 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringRef.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamRef.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamRef.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" #include <cstdint> diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFile.h b/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFile.h index b0be4fb4705..29e931f8fc4 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFile.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFile.h @@ -11,10 +11,10 @@ #define LLVM_DEBUGINFO_PDB_RAW_PDBFILE_H #include "llvm/ADT/DenseMap.h" -#include "llvm/DebugInfo/Msf/IMsfFile.h" -#include "llvm/DebugInfo/Msf/MsfCommon.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" -#include "llvm/DebugInfo/Msf/StreamInterface.h" +#include "llvm/DebugInfo/MSF/IMSFFile.h" +#include "llvm/DebugInfo/MSF/MSFCommon.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamInterface.h" #include "llvm/Support/Allocator.h" #include "llvm/Support/Endian.h" #include "llvm/Support/Error.h" @@ -38,7 +38,7 @@ class PublicsStream; class SymbolStream; class TpiStream; -class PDBFile : public msf::IMsfFile { +class PDBFile : public msf::IMSFFile { friend PDBFileBuilder; public: @@ -74,7 +74,7 @@ public: return ContainerLayout.StreamMap; } - const msf::MsfLayout &getMsfLayout() const { return ContainerLayout; } + const msf::MSFLayout &getMsfLayout() const { return ContainerLayout; } const msf::ReadableStream &getMsfBuffer() const { return *Buffer; } ArrayRef<support::ulittle32_t> getDirectoryBlockArray() const; @@ -95,7 +95,7 @@ private: std::unique_ptr<msf::ReadableStream> Buffer; - msf::MsfLayout ContainerLayout; + msf::MSFLayout ContainerLayout; std::unique_ptr<InfoStream> Info; std::unique_ptr<DbiStream> Dbi; diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h b/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h index 6242f42e991..b9c06db2e5a 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/PDBFileBuilder.h @@ -23,7 +23,7 @@ namespace llvm { namespace msf { -class MsfBuilder; +class MSFBuilder; } namespace pdb { class DbiStreamBuilder; @@ -37,7 +37,7 @@ public: Error initialize(const msf::SuperBlock &Super); - msf::MsfBuilder &getMsfBuilder(); + msf::MSFBuilder &getMsfBuilder(); InfoStreamBuilder &getInfoBuilder(); DbiStreamBuilder &getDbiBuilder(); @@ -47,11 +47,11 @@ public: Error commit(const msf::WritableStream &Buffer); private: - Expected<msf::MsfLayout> finalizeMsfLayout() const; + Expected<msf::MSFLayout> finalizeMsfLayout() const; BumpPtrAllocator &Allocator; - std::unique_ptr<msf::MsfBuilder> Msf; + std::unique_ptr<msf::MSFBuilder> Msf; std::unique_ptr<InfoStreamBuilder> Info; std::unique_ptr<DbiStreamBuilder> Dbi; }; diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/PublicsStream.h b/llvm/include/llvm/DebugInfo/PDB/Raw/PublicsStream.h index a302d853b8a..ba8ed11456d 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/PublicsStream.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/PublicsStream.h @@ -11,8 +11,8 @@ #define LLVM_DEBUGINFO_PDB_RAW_PUBLICSSTREAM_H #include "llvm/DebugInfo/CodeView/SymbolRecord.h" -#include "llvm/DebugInfo/Msf/MappedBlockStream.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" +#include "llvm/DebugInfo/MSF/MappedBlockStream.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" #include "llvm/DebugInfo/PDB/PDBTypes.h" #include "llvm/DebugInfo/PDB/Raw/RawConstants.h" #include "llvm/DebugInfo/PDB/Raw/RawTypes.h" diff --git a/llvm/include/llvm/DebugInfo/PDB/Raw/TpiStream.h b/llvm/include/llvm/DebugInfo/PDB/Raw/TpiStream.h index 31c02675d10..e518333bf1f 100644 --- a/llvm/include/llvm/DebugInfo/PDB/Raw/TpiStream.h +++ b/llvm/include/llvm/DebugInfo/PDB/Raw/TpiStream.h @@ -11,7 +11,7 @@ #define LLVM_DEBUGINFO_PDB_RAW_PDBTPISTREAM_H #include "llvm/DebugInfo/CodeView/TypeRecord.h" -#include "llvm/DebugInfo/Msf/StreamArray.h" +#include "llvm/DebugInfo/MSF/StreamArray.h" #include "llvm/DebugInfo/PDB/PDBTypes.h" #include "llvm/DebugInfo/PDB/Raw/RawConstants.h" #include "llvm/DebugInfo/PDB/Raw/RawTypes.h" |