diff options
author | Rui Ueyama <ruiu@google.com> | 2017-01-06 10:04:08 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-01-06 10:04:08 +0000 |
commit | ce039266c11a521f6702f413e04875c29d340822 (patch) | |
tree | 15f5bf2b921192ed4c5b10b6cbbf3e4e4b8ad579 /lld/ELF/InputSection.cpp | |
parent | dac6169214760886e974b622eda38c25af353fcb (diff) | |
download | bcm5719-llvm-ce039266c11a521f6702f413e04875c29d340822.tar.gz bcm5719-llvm-ce039266c11a521f6702f413e04875c29d340822.zip |
Merge elf::toString and coff::toString.
The two overloaded functions hid each other. This patch merges them.
llvm-svn: 291222
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r-- | lld/ELF/InputSection.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 805e51dab50..e87d92aa207 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -34,7 +34,7 @@ using namespace lld::elf; // Returns a string to construct an error message. template <class ELFT> -std::string elf::toString(const InputSectionBase<ELFT> *Sec) { +std::string lld::toString(const InputSectionBase<ELFT> *Sec) { return (Sec->getFile()->getName() + ":(" + Sec->Name + ")").str(); } @@ -844,7 +844,7 @@ template class elf::MergeInputSection<ELF32BE>; template class elf::MergeInputSection<ELF64LE>; template class elf::MergeInputSection<ELF64BE>; -template std::string elf::toString(const InputSectionBase<ELF32LE> *); -template std::string elf::toString(const InputSectionBase<ELF32BE> *); -template std::string elf::toString(const InputSectionBase<ELF64LE> *); -template std::string elf::toString(const InputSectionBase<ELF64BE> *); +template std::string lld::toString(const InputSectionBase<ELF32LE> *); +template std::string lld::toString(const InputSectionBase<ELF32BE> *); +template std::string lld::toString(const InputSectionBase<ELF64LE> *); +template std::string lld::toString(const InputSectionBase<ELF64BE> *); |