forked from OSchip/llvm-project
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:
parent
1d12b885b0
commit
e5ad2986fc
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue