diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp b/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp index 91b428afaddb..d5cac33d1519 100644 --- a/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp +++ b/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/NativeSession.cpp @@ -74,7 +74,7 @@ Error NativeSession::createFromPdb(std::unique_ptr<MemoryBuffer> Buffer,                                     std::unique_ptr<IPDBSession> &Session) {    StringRef Path = Buffer->getBufferIdentifier();    auto Stream = std::make_unique<MemoryBufferByteStream>( -      std::move(Buffer), llvm::support::little); +      std::move(Buffer), llvm::endianness::little);    auto Allocator = std::make_unique<BumpPtrAllocator>();    auto File = std::make_unique<PDBFile>(Path, std::move(Stream), *Allocator); @@ -104,8 +104,8 @@ loadPdbFile(StringRef PdbPath, std::unique_ptr<BumpPtrAllocator> &Allocator) {    if (EC || Magic != file_magic::pdb)      return make_error<RawError>(EC); -  auto Stream = std::make_unique<MemoryBufferByteStream>(std::move(Buffer), -                                                         llvm::support::little); +  auto Stream = std::make_unique<MemoryBufferByteStream>( +      std::move(Buffer), llvm::endianness::little);    auto File = std::make_unique<PDBFile>(PdbPath, std::move(Stream), *Allocator);    if (auto EC = File->parseFileHeaders()) @@ -176,7 +176,7 @@ NativeSession::searchForPdb(const PdbSearchOptions &Opts) {    if (!PathOrErr)      return PathOrErr.takeError();    StringRef PathFromExe = PathOrErr.get(); -  sys::path::Style Style = PathFromExe.startswith("/") +  sys::path::Style Style = PathFromExe.starts_with("/")                                 ? sys::path::Style::posix                                 : sys::path::Style::windows;    StringRef PdbName = sys::path::filename(PathFromExe, Style);  | 
