Remove unnecessary instantiation of StringRef.

SoName's type has changed from StringRef to std::string, so this
code does not make sense anymore.

llvm-svn: 301490
This commit is contained in:
Rui Ueyama 2017-04-26 23:00:32 +00:00
parent 1d12b885b0
commit e5ad2986fc
1 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ template <class ELFT> void SharedFile<ELFT>::parseSoName() {
uint64_t Val = Dyn.getVal();
if (Val >= this->StringTable.size())
fatal(toString(this) + ": invalid DT_SONAME entry");
SoName = StringRef(this->StringTable.data() + Val);
SoName = this->StringTable.data() + Val;
return;
}
}