diff options
Diffstat (limited to 'ELF/InputSection.cpp')
| -rw-r--r-- | ELF/InputSection.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ELF/InputSection.cpp b/ELF/InputSection.cpp index aff57551a8b3..c082f128a9bc 100644 --- a/ELF/InputSection.cpp +++ b/ELF/InputSection.cpp @@ -39,9 +39,7 @@ std::vector<InputSectionBase *> elf::InputSections; // Returns a string to construct an error message. std::string lld::toString(const InputSectionBase *Sec) { - // File can be absent if section is synthetic. - std::string FileName = Sec->File ? Sec->File->getName() : "<internal>"; - return (FileName + ":(" + Sec->Name + ")").str(); + return (toString(Sec->File) + ":(" + Sec->Name + ")").str(); } template <class ELFT> |
