mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
For PR411:
This patch replaces the SymbolTable class with ValueSymbolTable which does not support types planes. This means that all symbol names in LLVM must now be unique. The patch addresses the necessary changes to deal with this and removes code no longer needed as a result. This completes the bulk of the changes for this PR. Some cleanup patches will follow. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33918 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#define LLVM_SYMBOLTABLELISTTRAITS_IMPL_H
|
||||
|
||||
#include "llvm/SymbolTableListTraits.h"
|
||||
#include "llvm/SymbolTable.h"
|
||||
#include "llvm/ValueSymbolTable.h"
|
||||
|
||||
namespace llvm {
|
||||
|
||||
@@ -29,7 +29,7 @@ void SymbolTableListTraits<ValueSubClass,ItemParentClass,SymTabClass,SubClass>
|
||||
|
||||
// Remove all of the items from the old symtab..
|
||||
if (SymTabObject && !List.empty()) {
|
||||
SymbolTable &SymTab = SymTabObject->getValueSymbolTable();
|
||||
ValueSymbolTable &SymTab = SymTabObject->getValueSymbolTable();
|
||||
for (typename iplist<ValueSubClass>::iterator I = List.begin();
|
||||
I != List.end(); ++I)
|
||||
if (I->hasName()) SymTab.remove(I);
|
||||
@@ -39,7 +39,7 @@ void SymbolTableListTraits<ValueSubClass,ItemParentClass,SymTabClass,SubClass>
|
||||
|
||||
// Add all of the items to the new symtab...
|
||||
if (SymTabObject && !List.empty()) {
|
||||
SymbolTable &SymTab = SymTabObject->getValueSymbolTable();
|
||||
ValueSymbolTable &SymTab = SymTabObject->getValueSymbolTable();
|
||||
for (typename iplist<ValueSubClass>::iterator I = List.begin();
|
||||
I != List.end(); ++I)
|
||||
if (I->hasName()) SymTab.insert(I);
|
||||
|
Reference in New Issue
Block a user