summaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-12-22 14:58:30 +0000
committerdim <dim@FreeBSD.org>2012-12-22 14:58:30 +0000
commit0ac5f94c68a3d8fbd1380dbba26d891ea7816b5e (patch)
treec074bb56c422dea536a85cc2d80fd620bb6af08e /lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
parent6de2c08bc400b4aca9fb46684e8bdb56eed9b09f (diff)
downloadFreeBSD-src-0ac5f94c68a3d8fbd1380dbba26d891ea7816b5e.zip
FreeBSD-src-0ac5f94c68a3d8fbd1380dbba26d891ea7816b5e.tar.gz
Vendor import of llvm tags/RELEASE_32/final r170710 (effectively, 3.2
release): http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_32/final@170710
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index f6dccb1..a180e36 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
@@ -346,7 +346,7 @@ uint8_t *RuntimeDyldImpl::createStubFunction(uint8_t *Addr) {
uint32_t *StubAddr = (uint32_t*)Addr;
*StubAddr = 0xe51ff004; // ldr pc,<label>
return (uint8_t*)++StubAddr;
- } else if (Arch == Triple::mipsel) {
+ } else if (Arch == Triple::mipsel || Arch == Triple::mips) {
uint32_t *StubAddr = (uint32_t*)Addr;
// 0: 3c190000 lui t9,%hi(addr).
// 4: 27390000 addiu t9,t9,%lo(addr).
OpenPOWER on IntegriCloud