mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
SymbolRewriter: use iplist::splice
The swap implementation for iplist is currently unsupported. Simply splice the old list into place, which achieves the same purpose. This is needed in order to thread the -frewrite-map-file frontend option correctly. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -494,7 +494,7 @@ RewriteSymbols::RewriteSymbols() : ModulePass(ID) {
|
||||
|
||||
RewriteSymbols::RewriteSymbols(SymbolRewriter::RewriteDescriptorList &DL)
|
||||
: ModulePass(ID) {
|
||||
std::swap(Descriptors, DL);
|
||||
Descriptors.splice(Descriptors.begin(), DL);
|
||||
}
|
||||
|
||||
bool RewriteSymbols::runOnModule(Module &M) {
|
||||
|
Reference in New Issue
Block a user