mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -364,7 +364,7 @@ void AsmPrinter::EmitConstantValueOnly(const Constant *CV) {
|
|||||||
if (CV->isNullValue() || isa<UndefValue>(CV))
|
if (CV->isNullValue() || isa<UndefValue>(CV))
|
||||||
O << "0";
|
O << "0";
|
||||||
else if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) {
|
else if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) {
|
||||||
assert(CB == ConstantBool::True);
|
assert(CB->getValue());
|
||||||
O << "1";
|
O << "1";
|
||||||
} else if (const ConstantSInt *CI = dyn_cast<ConstantSInt>(CV))
|
} else if (const ConstantSInt *CI = dyn_cast<ConstantSInt>(CV))
|
||||||
if (((CI->getValue() << 32) >> 32) == CI->getValue())
|
if (((CI->getValue() << 32) >> 32) == CI->getValue())
|
||||||
|
Reference in New Issue
Block a user