ELF: Use StringRef instead of std::string.
authorRui Ueyama <ruiu@google.com>
Tue, 2 Feb 2016 20:24:31 +0000 (20:24 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 2 Feb 2016 20:24:31 +0000 (20:24 +0000)
commit8a789e0204a2e03b6907ee0da45fb68fba2e0841
treededef06632ff340eefbf48094b581de76c99f9da
parentb8fb2ba1bb3116d7cf84c3e317968377a690d35a
ELF: Use StringRef instead of std::string.

All MemoryBuffers for archive files are guaranteed to exist as long
as their children are used in the linker. So we don't need to copy
strings here. Thanks to Sean Silva for pointing this out.

llvm-svn: 259554
lld/ELF/InputFiles.h