diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-02 18:31:09 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-02 18:31:09 +0000 |
| commit | 274c9ff5404582ff22769d9599ab10ed216ceec3 (patch) | |
| tree | 8eccb2d5ca32dbec2ab6a1a3b8ac6a593f0e1b6f /ELF/InputSection.cpp | |
| parent | e06a19b85dfce9ea18be97247d4ca315963edc5c (diff) | |
Notes
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> |
