forked from OSchip/llvm-project
parent
61fc94e0c1
commit
1d8460755e
|
@ -36,7 +36,7 @@ using namespace lld::elf;
|
|||
// Returns a string to construct an error message.
|
||||
template <class ELFT>
|
||||
std::string lld::toString(const InputSectionBase<ELFT> *Sec) {
|
||||
// File can absent if section is synthetic.
|
||||
// File can be absent if section is synthetic.
|
||||
std::string FileName =
|
||||
Sec->getFile() ? Sec->getFile()->getName() : "<internal>";
|
||||
return (FileName + ":(" + Sec->Name + ")").str();
|
||||
|
@ -106,11 +106,6 @@ template <class ELFT> size_t InputSectionBase<ELFT>::getSize() const {
|
|||
return Data.size();
|
||||
}
|
||||
|
||||
// Returns a string for an error message.
|
||||
template <class SectionT> static std::string getName(SectionT *Sec) {
|
||||
return (Sec->getFile()->getName() + ":(" + Sec->Name + ")").str();
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
typename ELFT::uint InputSectionBase<ELFT>::getOffset(uintX_t Offset) const {
|
||||
switch (kind()) {
|
||||
|
|
Loading…
Reference in New Issue