Unbreak build on Linux by removing Darwinism.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2009-06-24 01:08:42 +00:00
parent 62849c065e
commit b825aaa028

View File

@ -644,7 +644,7 @@ ARMAsmPrinter::printBitfieldInvMaskImmOperand(const MachineInstr *MI, int Op) {
const MachineOperand &MO = MI->getOperand(Op); const MachineOperand &MO = MI->getOperand(Op);
uint32_t v = ~MO.getImm(); uint32_t v = ~MO.getImm();
int32_t lsb = ffs (v) - 1; int32_t lsb = ffs (v) - 1;
int32_t width = fls (v) - lsb; int32_t width = (32 - CountLeadingZeros_32 (v)) - lsb;
assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!"); assert(MO.isImm() && "Not a valid bf_inv_mask_imm value!");
O << "#" << lsb << ", #" << width; O << "#" << lsb << ", #" << width;
} }