aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Linker/LinkModules.cpp4
-rw-r--r--lib/VMCore/Linker.cpp4
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index b050493..b241d9e 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/lib/Linker/LinkModules.cpp
@@ -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 @@ static bool LinkTypes(Module *Dest, const Module *Src, std::string *Err) {
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);
diff --git a/lib/VMCore/Linker.cpp b/lib/VMCore/Linker.cpp
index b050493..b241d9e 100644
--- a/lib/VMCore/Linker.cpp
+++ b/lib/VMCore/Linker.cpp
@@ -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 @@ static bool LinkTypes(Module *Dest, const Module *Src, std::string *Err) {
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);