mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 05:41:40 +00:00
MC: address some comments in deprecation checks
Bob Wilson pointed out the unnecessary checks that had been committed to the instruction check predicates. The check was meant to ensure that the check was not accidentally applied to non-ARM instructions. This is better served as an assertion rather than a condition check. llvm-svn: 224825
This commit is contained in:
parent
91e6049dc1
commit
05be34efae
@ -77,8 +77,8 @@ static bool getITDeprecationInfo(MCInst &MI, MCSubtargetInfo &STI,
|
||||
|
||||
static bool getARMStoreDeprecationInfo(MCInst &MI, MCSubtargetInfo &STI,
|
||||
std::string &Info) {
|
||||
if (STI.getFeatureBits() & llvm::ARM::ModeThumb)
|
||||
return false;
|
||||
assert((~STI.getFeatureBits() & llvm::ARM::ModeThumb) &&
|
||||
"cannot predicate thumb instructions");
|
||||
|
||||
assert(MI.getNumOperands() >= 4 && "expected >= 4 arguments");
|
||||
for (unsigned OI = 4, OE = MI.getNumOperands(); OI < OE; ++OI) {
|
||||
@ -94,8 +94,8 @@ static bool getARMStoreDeprecationInfo(MCInst &MI, MCSubtargetInfo &STI,
|
||||
|
||||
static bool getARMLoadDeprecationInfo(MCInst &MI, MCSubtargetInfo &STI,
|
||||
std::string &Info) {
|
||||
if (STI.getFeatureBits() & llvm::ARM::ModeThumb)
|
||||
return false;
|
||||
assert((~STI.getFeatureBits() & llvm::ARM::ModeThumb) &&
|
||||
"cannot predicate thumb instructions");
|
||||
|
||||
assert(MI.getNumOperands() >= 4 && "expected >= 4 arguments");
|
||||
bool ListContainsPC = false, ListContainsLR = false;
|
||||
|
Loading…
Reference in New Issue
Block a user