aboutsummaryrefslogtreecommitdiffstats
path: root/tools/edis/EDInst.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-04-08 00:48:21 +0000
committerSean Callanan <scallanan@apple.com>2010-04-08 00:48:21 +0000
commit7f42f72a50cf6b5e108f10c94e0c2e529a50497b (patch)
tree552595597d80db505ac9ad4dc9c6b4cf15dddfc3 /tools/edis/EDInst.cpp
parent878bcb1edf2fd25ec5b30b71d66365248fe33e71 (diff)
downloadexternal_llvm-7f42f72a50cf6b5e108f10c94e0c2e529a50497b.zip
external_llvm-7f42f72a50cf6b5e108f10c94e0c2e529a50497b.tar.gz
external_llvm-7f42f72a50cf6b5e108f10c94e0c2e529a50497b.tar.bz2
Added support for ARM disassembly to edis.
I also added a rule to the ARM target's Makefile to build the ARM-specific instruction information table for the enhanced disassembler. I will add the test harness for all this stuff in a separate commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100735 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/edis/EDInst.cpp')
-rw-r--r--tools/edis/EDInst.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/edis/EDInst.cpp b/tools/edis/EDInst.cpp
index 9ed2700..1b6a360 100644
--- a/tools/edis/EDInst.cpp
+++ b/tools/edis/EDInst.cpp
@@ -81,21 +81,21 @@ unsigned EDInst::instID() {
bool EDInst::isBranch() {
if (ThisInstInfo)
- return ThisInstInfo->instructionFlags & kInstructionFlagBranch;
+ return ThisInstInfo->instructionType == kInstructionTypeBranch;
else
return false;
}
bool EDInst::isMove() {
if (ThisInstInfo)
- return ThisInstInfo->instructionFlags & kInstructionFlagMove;
+ return ThisInstInfo->instructionType == kInstructionTypeMove;
else
return false;
}
int EDInst::parseOperands() {
if (ParseResult.valid())
- return ParseResult.result();
+ return ParseResult.result();
if (!ThisInstInfo)
return ParseResult.setResult(-1);