diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-07-04 11:52:49 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-07-04 11:52:49 +0000 |
commit | c28a224c68adf0464c275778af4bce762ad25d37 (patch) | |
tree | 5566cfaacd99131a6484f1bfad42f7a1517a1581 /lib/VMCore | |
parent | 57f6efc095facdef056ccbabf418ed605fac656a (diff) | |
download | external_llvm-c28a224c68adf0464c275778af4bce762ad25d37.zip external_llvm-c28a224c68adf0464c275778af4bce762ad25d37.tar.gz external_llvm-c28a224c68adf0464c275778af4bce762ad25d37.tar.bz2 |
- #include <iostream> since its not in Value.h any more.
- constify use of Type* returned from symbol table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Linker.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); |