mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Fix big bug introduced with symbol table changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f18a36e398
commit
b91b657e02
@ -173,7 +173,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
|||||||
map<const Value*, Value*> &ValueMap, string *Err = 0) {
|
map<const Value*, Value*> &ValueMap, string *Err = 0) {
|
||||||
// We will need a module level symbol table if the src module has a module
|
// We will need a module level symbol table if the src module has a module
|
||||||
// level symbol table...
|
// level symbol table...
|
||||||
SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
|
SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
|
||||||
|
|
||||||
// Loop over all of the globals in the src module, mapping them over as we go
|
// Loop over all of the globals in the src module, mapping them over as we go
|
||||||
//
|
//
|
||||||
@ -263,7 +263,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
|||||||
string *Err = 0) {
|
string *Err = 0) {
|
||||||
// We will need a module level symbol table if the src module has a module
|
// We will need a module level symbol table if the src module has a module
|
||||||
// level symbol table...
|
// level symbol table...
|
||||||
SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
|
SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
|
||||||
|
|
||||||
// Loop over all of the functions in the src module, mapping them over as we
|
// Loop over all of the functions in the src module, mapping them over as we
|
||||||
// go
|
// go
|
||||||
|
@ -173,7 +173,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
|||||||
map<const Value*, Value*> &ValueMap, string *Err = 0) {
|
map<const Value*, Value*> &ValueMap, string *Err = 0) {
|
||||||
// We will need a module level symbol table if the src module has a module
|
// We will need a module level symbol table if the src module has a module
|
||||||
// level symbol table...
|
// level symbol table...
|
||||||
SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
|
SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
|
||||||
|
|
||||||
// Loop over all of the globals in the src module, mapping them over as we go
|
// Loop over all of the globals in the src module, mapping them over as we go
|
||||||
//
|
//
|
||||||
@ -263,7 +263,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
|||||||
string *Err = 0) {
|
string *Err = 0) {
|
||||||
// We will need a module level symbol table if the src module has a module
|
// We will need a module level symbol table if the src module has a module
|
||||||
// level symbol table...
|
// level symbol table...
|
||||||
SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
|
SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
|
||||||
|
|
||||||
// Loop over all of the functions in the src module, mapping them over as we
|
// Loop over all of the functions in the src module, mapping them over as we
|
||||||
// go
|
// go
|
||||||
|
@ -173,7 +173,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
|||||||
map<const Value*, Value*> &ValueMap, string *Err = 0) {
|
map<const Value*, Value*> &ValueMap, string *Err = 0) {
|
||||||
// We will need a module level symbol table if the src module has a module
|
// We will need a module level symbol table if the src module has a module
|
||||||
// level symbol table...
|
// level symbol table...
|
||||||
SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
|
SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
|
||||||
|
|
||||||
// Loop over all of the globals in the src module, mapping them over as we go
|
// Loop over all of the globals in the src module, mapping them over as we go
|
||||||
//
|
//
|
||||||
@ -263,7 +263,7 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
|||||||
string *Err = 0) {
|
string *Err = 0) {
|
||||||
// We will need a module level symbol table if the src module has a module
|
// We will need a module level symbol table if the src module has a module
|
||||||
// level symbol table...
|
// level symbol table...
|
||||||
SymbolTable *ST = (SymbolTable*)&Src->getSymbolTable();
|
SymbolTable *ST = (SymbolTable*)&Dest->getSymbolTable();
|
||||||
|
|
||||||
// Loop over all of the functions in the src module, mapping them over as we
|
// Loop over all of the functions in the src module, mapping them over as we
|
||||||
// go
|
// go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user