forked from OSchip/llvm-project
[COFF] Fix dangling StringRefs from SVN 331900
llvm-svn: 331912
This commit is contained in:
parent
d5d4cdb49d
commit
5c84d442f5
|
@ -630,8 +630,8 @@ static void parseModuleDefs(StringRef Path) {
|
|||
// it shouldn't be a normal exported function but a forward to another
|
||||
// DLL instead. This is supported by both MS and GNU linkers.
|
||||
if (E1.ExtName != E1.Name && StringRef(E1.Name).contains('.')) {
|
||||
E2.Name = E1.ExtName;
|
||||
E2.ForwardTo = E1.Name;
|
||||
E2.Name = Saver.save(E1.ExtName);
|
||||
E2.ForwardTo = Saver.save(E1.Name);
|
||||
Config->Exports.push_back(E2);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue