mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
- #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
This commit is contained in:
@@ -23,6 +23,8 @@
|
|||||||
#include "llvm/SymbolTable.h"
|
#include "llvm/SymbolTable.h"
|
||||||
#include "llvm/iOther.h"
|
#include "llvm/iOther.h"
|
||||||
#include "llvm/Assembly/Writer.h"
|
#include "llvm/Assembly/Writer.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
// Error - Simple wrapper function to conditionally assign to E and return true.
|
// 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 ) {
|
for ( ; TI != TE; ++TI ) {
|
||||||
const std::string &Name = TI->first;
|
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...
|
// Check to see if this type name is already in the dest module...
|
||||||
Type *Entry = DestST->lookupType(Name);
|
Type *Entry = DestST->lookupType(Name);
|
||||||
|
@@ -23,6 +23,8 @@
|
|||||||
#include "llvm/SymbolTable.h"
|
#include "llvm/SymbolTable.h"
|
||||||
#include "llvm/iOther.h"
|
#include "llvm/iOther.h"
|
||||||
#include "llvm/Assembly/Writer.h"
|
#include "llvm/Assembly/Writer.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
// Error - Simple wrapper function to conditionally assign to E and return true.
|
// 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 ) {
|
for ( ; TI != TE; ++TI ) {
|
||||||
const std::string &Name = TI->first;
|
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...
|
// Check to see if this type name is already in the dest module...
|
||||||
Type *Entry = DestST->lookupType(Name);
|
Type *Entry = DestST->lookupType(Name);
|
||||||
|
Reference in New Issue
Block a user