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

Chris Lattner lattner at cs.uiuc.edu
Sun Feb 8 22:45:40 PST 2004


Changes in directory llvm/lib/Bytecode/Writer:

ConstantWriter.cpp updated: 1.35 -> 1.36

---
Log message:

Adjust to the changed StructType interface.  In particular, getElementTypes() is gone.


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

Index: llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff -u llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.35 llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.36
--- llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.35	Sun Feb  8 22:13:43 2004
+++ llvm/lib/Bytecode/Writer/ConstantWriter.cpp	Sun Feb  8 22:37:29 2004
@@ -66,8 +66,8 @@
     const StructType *ST = cast<StructType>(T);
 
     // Output all of the element types...
-    StructType::ElementTypes::const_iterator I = ST->getElementTypes().begin();
-    for (; I != ST->getElementTypes().end(); ++I) {
+    for (StructType::element_iterator I = ST->element_begin(),
+           E = ST->element_end(); I != E; ++I) {
       int Slot = Table.getSlot(*I);
       assert(Slot != -1 && "Type used but not available!!");
       output_vbr((unsigned)Slot, Out);





More information about the llvm-commits mailing list