diff options
author | Logan Chien <loganchien@google.com> | 2011-11-26 14:18:36 +0800 |
---|---|---|
committer | Logan Chien <loganchien@google.com> | 2011-11-27 03:07:40 +0800 |
commit | 79f06f3cbcf2cb0394d33382186c31f2967cb400 (patch) | |
tree | 016178c03a53be4b8cf566971b39a0d06caedb3a /device | |
parent | b170fad25ac66976b67eaab820e466db22a7f07d (diff) | |
download | external_llvm-79f06f3cbcf2cb0394d33382186c31f2967cb400.zip external_llvm-79f06f3cbcf2cb0394d33382186c31f2967cb400.tar.gz external_llvm-79f06f3cbcf2cb0394d33382186c31f2967cb400.tar.bz2 |
Add build rules for MIPS.
Change-Id: Id929ad67b41e048102e89617bf6d2ba390aac1f1
Diffstat (limited to 'device')
-rw-r--r-- | device/include/llvm/Config/AsmParsers.def | 3 | ||||
-rw-r--r-- | device/include/llvm/Config/AsmPrinters.def | 2 | ||||
-rw-r--r-- | device/include/llvm/Config/Disassemblers.def | 3 | ||||
-rw-r--r-- | device/include/llvm/Config/Targets.def | 2 | ||||
-rw-r--r-- | device/include/llvm/Config/config.h | 4 |
5 files changed, 14 insertions, 0 deletions
diff --git a/device/include/llvm/Config/AsmParsers.def b/device/include/llvm/Config/AsmParsers.def index 45903a4..106734f 100644 --- a/device/include/llvm/Config/AsmParsers.def +++ b/device/include/llvm/Config/AsmParsers.def @@ -26,6 +26,9 @@ #if defined(__arm__) LLVM_ASM_PARSER(ARM) +#elif defined(__mips__) + // MIPS does not support assembly parser. + //LLVM_ASM_PARSER(Mips) #elif defined(__i386__) LLVM_ASM_PARSER(X86) #else diff --git a/device/include/llvm/Config/AsmPrinters.def b/device/include/llvm/Config/AsmPrinters.def index b7311ba..c9c7902 100644 --- a/device/include/llvm/Config/AsmPrinters.def +++ b/device/include/llvm/Config/AsmPrinters.def @@ -26,6 +26,8 @@ #if defined(__arm__) LLVM_ASM_PRINTER(ARM) +#elif defined(__mips__) + LLVM_ASM_PRINTER(Mips) #elif defined(__i386__) LLVM_ASM_PRINTER(X86) #else diff --git a/device/include/llvm/Config/Disassemblers.def b/device/include/llvm/Config/Disassemblers.def index 39df62e..c6d6a60 100644 --- a/device/include/llvm/Config/Disassemblers.def +++ b/device/include/llvm/Config/Disassemblers.def @@ -26,6 +26,9 @@ #if defined(__arm__) LLVM_DISASSEMBLER(ARM) +#elif defined(__mips__) + // MIPS does not support disassembler. + //LLVM_DISASSEMBLER(Mips) #elif defined(__i386__) LLVM_DISASSEMBLER(X86) #else diff --git a/device/include/llvm/Config/Targets.def b/device/include/llvm/Config/Targets.def index 4094606..4a16bb3 100644 --- a/device/include/llvm/Config/Targets.def +++ b/device/include/llvm/Config/Targets.def @@ -25,6 +25,8 @@ #if defined(__arm__) LLVM_TARGET(ARM) +#elif defined(__mips__) + LLVM_TARGET(Mips) #elif defined(__i386__) LLVM_TARGET(X86) #else diff --git a/device/include/llvm/Config/config.h b/device/include/llvm/Config/config.h index c2599c9..8f6b8f6 100644 --- a/device/include/llvm/Config/config.h +++ b/device/include/llvm/Config/config.h @@ -501,6 +501,8 @@ /* LLVM architecture name for the native architecture, if available */ #if defined(__arm__) # define LLVM_NATIVE_ARCH ARMTarget +#elif defined(__mips__) +# define LLVM_NATIVE_ARCH MipsTarget #elif defined(__i386__) # define LLVM_NATIVE_ARCH X86Target #else @@ -510,6 +512,8 @@ /* Short LLVM architecture name for the native architecture, if available */ #if defined(__arm__) # define LLVM_NATIVE_ARCHNAME ARM +#elif defined(__mips__) +# define LLVM_NATIVE_ARCHNAME Mips #elif defined(__i386__) # define LLVM_NATIVE_ARCHNAME X86 #else |