mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fix more MC layering violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135979 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d1200aa4f8
commit
275944afb5
@ -153,6 +153,11 @@ public:
|
||||
};
|
||||
} // end anonymous namespace
|
||||
|
||||
namespace llvm {
|
||||
// FIXME: TableGen this?
|
||||
extern MCRegisterClass ARMMCRegisterClasses[]; // In ARMGenRegisterInfo.inc.
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
/// ARMOperand - Instances of this class represent a parsed ARM machine
|
||||
@ -971,9 +976,11 @@ public:
|
||||
SMLoc StartLoc, SMLoc EndLoc) {
|
||||
KindTy Kind = RegisterList;
|
||||
|
||||
if (ARM::DPRRegClass.contains(Regs.front().first))
|
||||
if (llvm::ARMMCRegisterClasses[ARM::DPRRegClassID].
|
||||
contains(Regs.front().first))
|
||||
Kind = DPRRegisterList;
|
||||
else if (ARM::SPRRegClass.contains(Regs.front().first))
|
||||
else if (llvm::ARMMCRegisterClasses[ARM::SPRRegClassID].
|
||||
contains(Regs.front().first))
|
||||
Kind = SPRRegisterList;
|
||||
|
||||
ARMOperand *Op = new ARMOperand(Kind);
|
||||
|
Loading…
Reference in New Issue
Block a user