diff options
author | Maksim Panchenko <maks@fb.com> | 2021-12-14 16:52:51 -0800 |
---|---|---|
committer | Maksim Panchenko <maks@fb.com> | 2021-12-14 16:52:51 -0800 |
commit | 40c2e0fafe5675306f4ad43910bf6e2fd2025ff3 (patch) | |
tree | 6836c91cc86d98569f486373381beeab138e2319 /bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp | |
parent | 5fc8adb529d667131c6bcb413cf0621f5b5d20c4 (diff) | |
download | llvm-40c2e0fafe5675306f4ad43910bf6e2fd2025ff3.zip llvm-40c2e0fafe5675306f4ad43910bf6e2fd2025ff3.tar.gz llvm-40c2e0fafe5675306f4ad43910bf6e2fd2025ff3.tar.bz2 |
[BOLT][NFC] Reformat with clang-format
Summary: Selectively apply clang-format to BOLT code base.
(cherry picked from FBD33119052)
Diffstat (limited to 'bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp')
-rw-r--r-- | bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp b/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp index 0343a87..e77a88a 100644 --- a/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp +++ b/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp @@ -38,19 +38,16 @@ uint8_t *ExecutableFileMemoryManager::allocateSection(intptr_t Size, return DataCopy; } - if (!IsCode && - (SectionName == ".strtab" || - SectionName == ".symtab" || - SectionName == "" || - SectionName.startswith(".rela."))) { + if (!IsCode && (SectionName == ".strtab" || SectionName == ".symtab" || + SectionName == "" || SectionName.startswith(".rela."))) { return SectionMemoryManager::allocateDataSection(Size, Alignment, SectionID, SectionName, IsReadOnly); } uint8_t *Ret; if (IsCode) { - Ret = SectionMemoryManager::allocateCodeSection(Size, Alignment, - SectionID, SectionName); + Ret = SectionMemoryManager::allocateCodeSection(Size, Alignment, SectionID, + SectionName); } else { Ret = SectionMemoryManager::allocateDataSection(Size, Alignment, SectionID, SectionName, IsReadOnly); @@ -93,8 +90,8 @@ bool ExecutableFileMemoryManager::finalizeMemory(std::string *ErrMsg) { return SectionMemoryManager::finalizeMemory(ErrMsg); } -ExecutableFileMemoryManager::~ExecutableFileMemoryManager() { } +ExecutableFileMemoryManager::~ExecutableFileMemoryManager() {} -} +} // namespace bolt -} +} // namespace llvm |