[llvm-commits] CVS: llvm/lib/Target/Sparc/EmitAssembly.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Feb 9 23:17:01 PST 2004
Changes in directory llvm/lib/Target/Sparc:
EmitAssembly.cpp updated: 1.102 -> 1.103
---
Log message:
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?
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/Target/Sparc/EmitAssembly.cpp
diff -u llvm/lib/Target/Sparc/EmitAssembly.cpp:1.102 llvm/lib/Target/Sparc/EmitAssembly.cpp:1.103
--- llvm/lib/Target/Sparc/EmitAssembly.cpp:1.102 Mon Feb 9 16:15:33 2004
+++ llvm/lib/Target/Sparc/EmitAssembly.cpp Mon Feb 9 23:16:44 2004
@@ -340,6 +340,8 @@
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";
}
More information about the llvm-commits
mailing list