diff options
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
-rw-r--r-- | lib/Bytecode/Writer/Writer.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 5df2fdabde..ffe67a32f5 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -61,9 +61,6 @@ BytecodeWriter::BytecodeWriter(deque<unsigned char> &o, const Module *M) outputSymbolTable(*M->getSymbolTable()); } -// TODO: REMOVE -#include "llvm/Assembly/Writer.h" - void BytecodeWriter::outputConstants(bool isMethod) { BytecodeBlock CPool(BytecodeFormat::ConstantPool, Out); @@ -109,8 +106,7 @@ void BytecodeWriter::outputConstants(bool isMethod) { // << Out.size() << "\n"; outputConstant(CPV); } else { - const Type *Ty = cast<const Type>(V); - outputType(Ty); + outputType(cast<const Type>(V)); } } } @@ -130,7 +126,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) { isa<ConstPoolVal>(GV); output_vbr(oSlot, Out); - // If we have an initialized, output it now. + // If we have an initializer, output it now. if (GV->hasInitializer()) { Slot = Table.getValSlot(GV->getInitializer()); assert(Slot != -1 && "No slot for global var initializer!"); |