diff options
Diffstat (limited to 'bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp')
-rw-r--r-- | bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp b/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp index aa5c834..041d0d8 100644 --- a/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp +++ b/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp @@ -120,7 +120,7 @@ void ExecutableFileMemoryManager::updateSection( } if (!IsCode && (SectionName == ".strtab" || SectionName == ".symtab" || - SectionName == "" || SectionName.startswith(".rela."))) + SectionName == "" || SectionName.starts_with(".rela."))) return; SmallVector<char, 256> Buf; @@ -139,7 +139,7 @@ void ExecutableFileMemoryManager::updateSection( } BinarySection *Section = nullptr; - if (!OrgSecPrefix.empty() && SectionName.startswith(OrgSecPrefix)) { + if (!OrgSecPrefix.empty() && SectionName.starts_with(OrgSecPrefix)) { // Update the original section contents. ErrorOr<BinarySection &> OrgSection = BC.getUniqueSectionByName(SectionName.substr(OrgSecPrefix.length())); |