1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Fix more MC layering violations.

llvm-svn: 135979
This commit is contained in:
Evan Cheng 2011-07-25 21:32:49 +00:00
parent e278841e44
commit 0854e3acbc

View File

@ -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);