[llvm-commits] [llvm] r151777 - /llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp

Sean Callanan scallanan at apple.com
Wed Feb 29 16:15:29 PST 2012


Author: spyffe
Date: Wed Feb 29 18:15:29 2012
New Revision: 151777

URL: http://llvm.org/viewvc/llvm-project?rev=151777&view=rev
Log:
Fixed the 32-bit runtime dynamic loader to allocate
code sections when needed.  It just had a conditional
the wrong way around.

Modified:
    llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp

Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp?rev=151777&r1=151776&r2=151777&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp Wed Feb 29 18:15:29 2012
@@ -150,7 +150,7 @@
     // 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);





More information about the llvm-commits mailing list