mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
reduce #includes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84536 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
61d35c273e
commit
8514e21deb
@ -15,7 +15,6 @@
|
||||
#define LLVM_TARGET_ARM_ARMADDRESSINGMODES_H
|
||||
|
||||
#include "llvm/CodeGen/SelectionDAGNodes.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include <cassert>
|
||||
|
||||
@ -38,7 +37,7 @@ namespace ARM_AM {
|
||||
|
||||
static inline const char *getShiftOpcStr(ShiftOpc Op) {
|
||||
switch (Op) {
|
||||
default: llvm_unreachable("Unknown shift opc!");
|
||||
default: assert(0 && "Unknown shift opc!");
|
||||
case ARM_AM::asr: return "asr";
|
||||
case ARM_AM::lsl: return "lsl";
|
||||
case ARM_AM::lsr: return "lsr";
|
||||
@ -71,7 +70,7 @@ namespace ARM_AM {
|
||||
|
||||
static inline const char *getAMSubModeStr(AMSubMode Mode) {
|
||||
switch (Mode) {
|
||||
default: llvm_unreachable("Unknown addressing sub-mode!");
|
||||
default: assert(0 && "Unknown addressing sub-mode!");
|
||||
case ARM_AM::ia: return "ia";
|
||||
case ARM_AM::ib: return "ib";
|
||||
case ARM_AM::da: return "da";
|
||||
@ -81,7 +80,7 @@ namespace ARM_AM {
|
||||
|
||||
static inline const char *getAMSubModeAltStr(AMSubMode Mode, bool isLD) {
|
||||
switch (Mode) {
|
||||
default: llvm_unreachable("Unknown addressing sub-mode!");
|
||||
default: assert(0 && "Unknown addressing sub-mode!");
|
||||
case ARM_AM::ia: return isLD ? "fd" : "ea";
|
||||
case ARM_AM::ib: return isLD ? "ed" : "fa";
|
||||
case ARM_AM::da: return isLD ? "fa" : "ed";
|
||||
|
Loading…
Reference in New Issue
Block a user