diff options
Diffstat (limited to 'device/include')
-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 |