summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
committerChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
commita682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a (patch)
treeac566bc85cd22b41c0f530d82937408cd7c5e79a /llvm/lib/VMCore/AsmWriter.cpp
parent52112fb34e6846c33208bab143b7815eefcb0421 (diff)
downloadbcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.tar.gz
bcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.zip
Neg instruction removed. Cast instruction implemented.
llvm-svn: 156
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index 398f7a87b8e..d84cba0752b 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -207,7 +207,9 @@ bool AssemblyWriter::processInstruction(const Instruction *I) {
Out << ",";
writeOperand(I->getOperand(0), true);
}
-
+ } else if (I->getOpcode() == Instruction::Cast) {
+ writeOperand(Operand, true);
+ Out << " to " << I->getType();
} else if (Operand) { // Print the normal way...
// PrintAllTypes - Instructions who have operands of all the same type
OpenPOWER on IntegriCloud