diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-04-21 11:21:48 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-04-21 11:21:48 +0000 |
commit | dbbd8b15bf996397e11e375ba692dc032e46ea6e (patch) | |
tree | e8d9d9b54f97cacfbfbed45f27f27b4effc7cf35 /lld/ELF/LinkerScript.cpp | |
parent | d370f440e2c9be59890e0f40be30b120c52e0379 (diff) | |
download | bcm5719-llvm-dbbd8b15bf996397e11e375ba692dc032e46ea6e.tar.gz bcm5719-llvm-dbbd8b15bf996397e11e375ba692dc032e46ea6e.zip |
[ELF] - Use ArrayRef instead of std::vector& for LinkerScript module. NFC.
llvm-svn: 266978
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index ae21039f34c..966acf3eb6f 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -185,7 +185,7 @@ bool LinkerScript<ELFT>::shouldKeep(InputSectionBase<ELFT> *S) { template <class ELFT> static OutputSectionBase<ELFT> * -findSection(std::vector<OutputSectionBase<ELFT> *> &V, StringRef Name) { +findSection(ArrayRef<OutputSectionBase<ELFT> *> V, StringRef Name) { for (OutputSectionBase<ELFT> *Sec : V) if (Sec->getName() == Name) return Sec; @@ -194,7 +194,7 @@ findSection(std::vector<OutputSectionBase<ELFT> *> &V, StringRef Name) { template <class ELFT> void LinkerScript<ELFT>::assignAddresses( - std::vector<OutputSectionBase<ELFT> *> &Sections) { + ArrayRef<OutputSectionBase<ELFT> *> Sections) { typedef typename ELFT::uint uintX_t; // Orphan sections are sections present in the input files which @@ -219,7 +219,7 @@ void LinkerScript<ELFT>::assignAddresses( continue; } - OutputSectionBase<ELFT> *Sec = findSection(Sections, Cmd.SectionName); + OutputSectionBase<ELFT> *Sec = findSection<ELFT>(Sections, Cmd.SectionName); if (!Sec) continue; |