aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/Writer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-04 05:23:49 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-04 05:23:49 +0000
commit595b477915ad972b19db5a9ce8de5d31f5aa6410 (patch)
treecce7d742ba417a35c583f9769530e3e924a5ae1b /lib/Bytecode/Writer/Writer.cpp
parent763ed5e4ac4e896d66ad73b6df5b6fcf91ea58d3 (diff)
For PR950: Implement read/write of ICmp and FCmp constant expressions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 127a3bac00..fdd0f3ca42 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -303,6 +303,8 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
Slot = Table.getSlot((*OI)->getType());
output_typeid((unsigned)Slot);
}
+ if (CE->isCompare())
+ output_vbr((unsigned)CE->getPredicate());
return;
} else if (isa<UndefValue>(CPV)) {
output_vbr(1U); // 1 -> UndefValue constant.