mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-16 00:16:50 +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:
parent
02d601d342
commit
e5f07551f0
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user