diff options
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp')
| -rw-r--r-- | llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp index e4e2b2a6d21a..99689786a13c 100644 --- a/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp +++ b/llvm/lib/ObjectYAML/CodeViewYAMLTypes.cpp @@ -784,7 +784,7 @@ std::vector<LeafRecord> llvm::CodeViewYAML::fromDebugT(ArrayRef<uint8_t> DebugTorP, StringRef SectionName) { ExitOnError Err("Invalid " + std::string(SectionName) + " section!"); - BinaryStreamReader Reader(DebugTorP, support::little); + BinaryStreamReader Reader(DebugTorP, llvm::endianness::little); CVTypeArray Types; uint32_t Magic; @@ -813,7 +813,7 @@ ArrayRef<uint8_t> llvm::CodeViewYAML::toDebugT(ArrayRef<LeafRecord> Leafs, } uint8_t *ResultBuffer = Alloc.Allocate<uint8_t>(Size); MutableArrayRef<uint8_t> Output(ResultBuffer, Size); - BinaryStreamWriter Writer(Output, support::little); + BinaryStreamWriter Writer(Output, llvm::endianness::little); ExitOnError Err("Error writing type record to " + std::string(SectionName) + " section"); Err(Writer.writeInteger<uint32_t>(COFF::DEBUG_SECTION_MAGIC)); |
