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:
Chris Lattner 2004-02-10 05:16:44 +00:00
parent 4766d0c680
commit ff04d76c57
1 changed files with 2 additions and 0 deletions

View File

@ -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";
}