diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-04 05:23:49 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-04 05:23:49 +0000 |
commit | 15df7d590c862841b6f89e514052d8d96d375338 (patch) | |
tree | 44d6f51ce29d35f27b41c0309d318942e2d98378 /llvm/lib/Bytecode/Writer/Writer.cpp | |
parent | f349069f1c8357fd4aaf9824ba060b46296a85c0 (diff) | |
download | bcm5719-llvm-15df7d590c862841b6f89e514052d8d96d375338.tar.gz bcm5719-llvm-15df7d590c862841b6f89e514052d8d96d375338.zip |
For PR950: Implement read/write of ICmp and FCmp constant expressions
llvm-svn: 32172
Diffstat (limited to 'llvm/lib/Bytecode/Writer/Writer.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index 127a3bac003..fdd0f3ca427 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/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. |