mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +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:
@@ -341,9 +341,11 @@ static bool ExtractLoops(BugDriver &BD,
|
||||
// optimized and loop extracted module.
|
||||
MiscompiledFunctions.clear();
|
||||
for (unsigned i = 0, e = MisCompFunctions.size(); i != e; ++i) {
|
||||
Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first,
|
||||
MisCompFunctions[i].second);
|
||||
Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first);
|
||||
|
||||
assert(NewF && "Function not found??");
|
||||
assert(NewF->getFunctionType() == MisCompFunctions[i].second &&
|
||||
"found wrong function type?");
|
||||
MiscompiledFunctions.push_back(NewF);
|
||||
}
|
||||
|
||||
@@ -479,9 +481,10 @@ static bool ExtractBlocks(BugDriver &BD,
|
||||
MiscompiledFunctions.clear();
|
||||
|
||||
for (unsigned i = 0, e = MisCompFunctions.size(); i != e; ++i) {
|
||||
Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first,
|
||||
MisCompFunctions[i].second);
|
||||
Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first);
|
||||
assert(NewF && "Function not found??");
|
||||
assert(NewF->getFunctionType() == MisCompFunctions[i].second &&
|
||||
"Function has wrong type??");
|
||||
MiscompiledFunctions.push_back(NewF);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user