aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp')
-rw-r--r--bolt/lib/Rewrite/ExecutableFileMemoryManager.cpp17
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