diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-03-11 07:16:55 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-03-11 07:16:55 +0000 |
commit | b78ca423844f19f4a838abb49b4b4fa7ae499707 (patch) | |
tree | 74c164f122f075151fc729af31e11c5d09313c0b /lib/Target/MBlaze | |
parent | 048e9bdbeb9c2a9de1a4effde24ffe4946ca37c2 (diff) | |
download | external_llvm-b78ca423844f19f4a838abb49b4b4fa7ae499707.zip external_llvm-b78ca423844f19f4a838abb49b4b4fa7ae499707.tar.gz external_llvm-b78ca423844f19f4a838abb49b4b4fa7ae499707.tar.bz2 |
Use uint16_t to store registers and opcode in static tables in the target specific backends.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MBlaze')
-rw-r--r-- | lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp b/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp index adedf93..6b958c8 100644 --- a/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp +++ b/lib/Target/MBlaze/Disassembler/MBlazeDisassembler.cpp @@ -34,9 +34,9 @@ extern const MCInstrDesc MBlazeInsts[]; using namespace llvm; -const unsigned UNSUPPORTED = -1; +const uint16_t UNSUPPORTED = -1; -static const unsigned mblazeBinary2Opcode[] = { +static const uint16_t mblazeBinary2Opcode[] = { MBlaze::ADD, MBlaze::RSUB, MBlaze::ADDC, MBlaze::RSUBC, //00,01,02,03 MBlaze::ADDK, MBlaze::RSUBK, MBlaze::ADDKC, MBlaze::RSUBKC, //04,05,06,07 MBlaze::ADDI, MBlaze::RSUBI, MBlaze::ADDIC, MBlaze::RSUBIC, //08,09,0A,0B |