mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
These don't really need contexts either.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75528 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2621,11 +2621,11 @@ void CWriter::visitBinaryOperator(Instruction &I) {
|
||||
|
||||
// If this is a negation operation, print it out as such. For FP, we don't
|
||||
// want to print "-0.0 - X".
|
||||
if (BinaryOperator::isNeg(*Context, &I)) {
|
||||
if (BinaryOperator::isNeg(&I)) {
|
||||
Out << "-(";
|
||||
writeOperand(BinaryOperator::getNegArgument(cast<BinaryOperator>(&I)));
|
||||
Out << ")";
|
||||
} else if (BinaryOperator::isFNeg(*Context, &I)) {
|
||||
} else if (BinaryOperator::isFNeg(&I)) {
|
||||
Out << "-(";
|
||||
writeOperand(BinaryOperator::getFNegArgument(cast<BinaryOperator>(&I)));
|
||||
Out << ")";
|
||||
|
Reference in New Issue
Block a user