Runtime dynamic linker for MCJIT should support MIPS BigEndian architecture.

This small change adds support for that. It will make all MCJIT tests pass
in make-check on BigEndian platforms.

Patch by Petar Jovanovic.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka
2012-12-03 23:12:19 +00:00
parent ff0b2cfa3b
commit ade047463f
3 changed files with 4 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ protected:
inline unsigned getMaxStubSize() {
if (Arch == Triple::arm || Arch == Triple::thumb)
return 8; // 32-bit instruction and 32-bit address
else if (Arch == Triple::mipsel)
else if (Arch == Triple::mipsel or Arch == Triple::mips)
return 16;
else if (Arch == Triple::ppc64)
return 44;