[llvm-commits] CVS: llvm/lib/Bytecode/Writer/SlotCalculator.cpp Writer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 24 19:37:01 PDT 2004
Changes in directory llvm/lib/Bytecode/Writer:
SlotCalculator.cpp updated: 1.56 -> 1.57
Writer.cpp updated: 1.65 -> 1.66
---
Log message:
Fix more warnings building with VC++
---
Diffs of the changes: (+3 -4)
Index: llvm/lib/Bytecode/Writer/SlotCalculator.cpp
diff -u llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.56 llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.57
--- llvm/lib/Bytecode/Writer/SlotCalculator.cpp:1.56 Thu Jun 17 13:17:59 2004
+++ llvm/lib/Bytecode/Writer/SlotCalculator.cpp Thu Jun 24 19:35:55 2004
@@ -717,7 +717,8 @@
// If we haven't seen this sub type before, add it to our type table!
if (getSlot(SubTy) == -1) {
SC_DEBUG(" Inserting subtype: " << SubTy->getDescription() << "\n");
- int Slot = doInsertValue(SubTy);
+ SC_DEBUG(int Slot = );
+ doInsertValue(SubTy);
SC_DEBUG(" Inserted subtype: " << SubTy->getDescription() <<
" slot=" << Slot << "\n");
}
Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.65 llvm/lib/Bytecode/Writer/Writer.cpp:1.66
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.65 Thu May 27 15:18:51 2004
+++ llvm/lib/Bytecode/Writer/Writer.cpp Thu Jun 24 19:35:55 2004
@@ -340,8 +340,6 @@
for (; I != End; ++I) {
// Symtab entry: [def slot #][name]
- const Value *V = I->second;
-
Slot = Table.getSlot(I->second);
assert(Slot != -1 && "Value in symtab but has no slot number!!");
output_vbr((unsigned)Slot, Out);
@@ -380,7 +378,7 @@
}
// Write out the chunk...
- Out.write((char*)ChunkPtr, LastPtr-ChunkPtr);
+ Out.write((char*)ChunkPtr, unsigned(LastPtr-ChunkPtr));
}
Out.flush();
More information about the llvm-commits
mailing list