Consistently check 'IsCode' when allocating sections in RuntimeDyld (via
authorLang Hames <lhames@gmail.com>
Tue, 18 Feb 2014 21:46:39 +0000 (21:46 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 18 Feb 2014 21:46:39 +0000 (21:46 +0000)
commit25818a6e26710e555dd8a32e8a6475ec20b60d65
tree01656441e0e9e46da6f2c2890f72dfe0cfb145e4
parenta3de371b531a5667e2db3eb0cb1c8b9fc55941e4
Consistently check 'IsCode' when allocating sections in RuntimeDyld (via
findOrEmitSection).

Vaidas Gasiunas's patch, r201259, fixed one instance where we were always
allocating sections as text. This patch fixes the remaining buggy call sites.

No test case: This isn't breaking anything that I know of, it's just
inconsistent.

<rdar://problem/15943542>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp