summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-03-01 00:15:29 +0000
committerSean Callanan <scallanan@apple.com>2012-03-01 00:15:29 +0000
commit0a5597d3564052462a568e2e30c16f8f55faceb2 (patch)
treea5dbbcfcc5e6d6bb53dabfb4634b791e5e848781 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
parent2c21c449d958f5c9c5c95795298c69aab540fcb7 (diff)
downloadbcm5719-llvm-0a5597d3564052462a568e2e30c16f8f55faceb2.tar.gz
bcm5719-llvm-0a5597d3564052462a568e2e30c16f8f55faceb2.zip
Fixed the 32-bit runtime dynamic loader to allocate
code sections when needed. It just had a conditional the wrong way around. llvm-svn: 151777
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
index 4553ef42df7..c11b2c31c3f 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
@@ -150,7 +150,7 @@ loadSegment32(const MachOObject *Obj,
// Allocate memory via the MM for the section.
uint8_t *Buffer;
uint32_t SectionID = Sections.size();
- if (Sect->Flags != 0x80000400)
+ if (Sect->Flags == 0x80000400)
Buffer = MemMgr->allocateCodeSection(Sect->Size, Sect->Align, SectionID);
else
Buffer = MemMgr->allocateDataSection(Sect->Size, Sect->Align, SectionID);
OpenPOWER on IntegriCloud