mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d9ae84898e
commit
9fb471df2e
@ -421,7 +421,7 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV,
|
||||
const int IndentSize = 4;
|
||||
static std::string Indent = "\n";
|
||||
if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) {
|
||||
Out << (CB == ConstantBool::True ? "true" : "false");
|
||||
Out << (CB->getValue() ? "true" : "false");
|
||||
} else if (const ConstantSInt *CI = dyn_cast<ConstantSInt>(CV)) {
|
||||
Out << CI->getValue();
|
||||
} else if (const ConstantUInt *CI = dyn_cast<ConstantUInt>(CV)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user