Fix build broken by changes in StringMatcher interface r290213

llvm-svn: 290231
This commit is contained in:
Vitaly Buka 2016-12-21 02:27:14 +00:00
parent f4dd5e3586
commit 0b7de06a23
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ struct SectionPattern {
struct InputSectionDescription : BaseCommand {
InputSectionDescription(StringRef FilePattern)
: BaseCommand(InputSectionKind), FilePat({FilePattern}) {}
: BaseCommand(InputSectionKind), FilePat(FilePattern) {}
static bool classof(const BaseCommand *C);

View File

@ -586,7 +586,7 @@ template <class ELFT>
std::vector<SymbolBody *>
SymbolTable<ELFT>::findAllByVersion(SymbolVersion Ver) {
std::vector<SymbolBody *> Res;
StringMatcher M({Ver.Name});
StringMatcher M(Ver.Name);
if (Ver.IsExternCpp) {
initDemangledSyms();