diff options
author | Fangrui Song <i@maskray.me> | 2022-12-04 09:11:11 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-04 09:11:11 +0000 |
commit | c302fb5cc3118ba05fc4d824f4c358af16732f96 (patch) | |
tree | bf2b77c0182355876eea09a1495847c39d245831 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 5f5b942823474e98e43a27d515a87ce140396c53 (diff) | |
download | llvm-c302fb5cc3118ba05fc4d824f4c358af16732f96.zip llvm-c302fb5cc3118ba05fc4d824f4c358af16732f96.tar.gz llvm-c302fb5cc3118ba05fc4d824f4c358af16732f96.tar.bz2 |
[Object] llvm::Optional => std::optional
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index e6ff7cb..92491a0 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -4957,7 +4957,7 @@ ArrayRef<uint8_t> MachOObjectFile::getDyldInfoExportsTrie() const { return makeArrayRef(Ptr, DyldInfo.export_size); } -Expected<Optional<MachO::linkedit_data_command>> +Expected<std::optional<MachO::linkedit_data_command>> MachOObjectFile::getChainedFixupsLoadCommand() const { // Load the dyld chained fixups load command. if (!DyldChainedFixupsLoadCmd) @@ -4976,7 +4976,7 @@ MachOObjectFile::getChainedFixupsLoadCommand() const { return DyldChainedFixups; } -Expected<Optional<MachO::dyld_chained_fixups_header>> +Expected<std::optional<MachO::dyld_chained_fixups_header>> MachOObjectFile::getChainedFixupsHeader() const { auto CFOrErr = getChainedFixupsLoadCommand(); if (!CFOrErr) |