[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

LLVM llvm at cs.uiuc.edu
Wed May 26 02:40:02 PDT 2004


Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.63 -> 1.64

---
Log message:

Part of bug 122: http://llvm.cs.uiuc.edu/PR122 :
This change removes the BuildBytecodeInfo flag from the SlotCalculator
class. This flag was needed to distinguish between the Bytecode/Writer
and the AsmWriter. Now that AsmWriter doesn't use SlotCalculator, we can
remove this flag and simplify some code. Also, some minor name changes
to CachedWriter.h needed to be committed (missed in previous commit).


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.63 llvm/lib/Bytecode/Writer/Writer.cpp:1.64
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.63	Tue May 25 12:29:59 2004
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Wed May 26 02:37:11 2004
@@ -40,7 +40,7 @@
 BytesWritten("bytecodewriter", "Number of bytecode bytes written");
 
 BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &o, const Module *M) 
-  : Out(o), Table(M, true) {
+  : Out(o), Table(M) {
 
   // Emit the signature...
   static const unsigned char *Sig =  (const unsigned char*)"llvm";





More information about the llvm-commits mailing list