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

LLVM llvm at cs.uiuc.edu
Sun Jul 4 07:23:04 PDT 2004


Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.183 -> 1.184

---
Log message:

Add #include <iostream> since Value.h does not #include it any more.


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

Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.183 llvm/lib/Target/CBackend/Writer.cpp:1.184
--- llvm/lib/Target/CBackend/Writer.cpp:1.183	Sun Jun 20 02:48:07 2004
+++ llvm/lib/Target/CBackend/Writer.cpp	Sun Jul  4 07:19:56 2004
@@ -35,6 +35,7 @@
 #include "Support/StringExtras.h"
 #include "Config/config.h"
 #include <algorithm>
+#include <iostream>
 #include <sstream>
 using namespace llvm;
 
@@ -222,7 +223,7 @@
   for (SymbolTable::type_iterator TI = MST.type_begin(), TE = MST.type_end();
        TI != TE; ) {
     SymbolTable::type_iterator I = TI++;
-    if (StructType *STy = dyn_cast<StructType>(I->second)) {
+    if (const StructType *STy = dyn_cast<StructType>(I->second)) {
       // If this is not used, remove it from the symbol table.
       std::set<const Type *>::iterator UTI = UT.find(STy);
       if (UTI == UT.end())





More information about the llvm-commits mailing list