forked from OSchip/llvm-project
Fix PR228: [sparc] Boolean constants are emitted as true and false
I will observe that the concept of using WriteAsOperand is completely broken, but then we all knew that, didn't we? llvm-svn: 11255
This commit is contained in:
parent
4766d0c680
commit
ff04d76c57
|
@ -340,6 +340,8 @@ void AsmPrinter::printSingleConstantValue(const Constant* CV) {
|
|||
|
||||
toAsm << "\t! " << CV->getType()->getDescription()
|
||||
<< " value: " << Val << "\n";
|
||||
} else if (const ConstantBool *CB = dyn_cast<ConstantBool>(CV)) {
|
||||
toAsm << (int)CB->getValue() << "\n";
|
||||
} else {
|
||||
WriteAsOperand(toAsm, CV, false, false) << "\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue