[llvm-commits] CVS: llvm/lib/VMCore/Linker.cpp

LLVM llvm at cs.uiuc.edu
Sun Jul 4 06:54:01 PDT 2004


Changes in directory llvm/lib/VMCore:

Linker.cpp updated: 1.72 -> 1.73

---
Log message:

- #include <iostream> since its not in Value.h any more.
- constify use of Type* returned from symbol table.


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

Index: llvm/lib/VMCore/Linker.cpp
diff -u llvm/lib/VMCore/Linker.cpp:1.72 llvm/lib/VMCore/Linker.cpp:1.73
--- llvm/lib/VMCore/Linker.cpp:1.72	Wed Jun 23 12:24:31 2004
+++ llvm/lib/VMCore/Linker.cpp	Sun Jul  4 06:52:49 2004
@@ -23,6 +23,8 @@
 #include "llvm/SymbolTable.h"
 #include "llvm/iOther.h"
 #include "llvm/Assembly/Writer.h"
+#include <iostream>
+
 using namespace llvm;
 
 // Error - Simple wrapper function to conditionally assign to E and return true.
@@ -183,7 +185,7 @@
 
   for ( ; TI != TE; ++TI ) {
     const std::string &Name = TI->first;
-    Type *RHS = TI->second;
+    const Type *RHS = TI->second;
 
     // Check to see if this type name is already in the dest module...
     Type *Entry = DestST->lookupType(Name);





More information about the llvm-commits mailing list