summaryrefslogtreecommitdiffstats
path: root/lld/include/lld
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-12-08 01:09:21 +0000
committerSam Clegg <sbc@chromium.org>2017-12-08 01:09:21 +0000
commit0fb6faa0becbf5e4dadb1656f0d7aea286e1ad37 (patch)
tree8cab1f3123cc304e0d869bd10dd07ae8a7834fc8 /lld/include/lld
parent6a7513e2cd70d33d361d624310d9d16b2f17df25 (diff)
downloadbcm5719-llvm-0fb6faa0becbf5e4dadb1656f0d7aea286e1ad37.tar.gz
bcm5719-llvm-0fb6faa0becbf5e4dadb1656f0d7aea286e1ad37.zip
Prefer `ArrayRef` over `const std::vector&`
Differential Revision: https://reviews.llvm.org/D40993 llvm-svn: 320125
Diffstat (limited to 'lld/include/lld')
-rw-r--r--lld/include/lld/Core/LinkingContext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/include/lld/Core/LinkingContext.h b/lld/include/lld/Core/LinkingContext.h
index b3a999b00fb..eb9510cbd21 100644
--- a/lld/include/lld/Core/LinkingContext.h
+++ b/lld/include/lld/Core/LinkingContext.h
@@ -62,7 +62,7 @@ public:
/// of DefinedAtoms that should be marked live (along with all Atoms they
/// reference). Only Atoms with scope scopeLinkageUnit or scopeGlobal can
/// be kept live using this method.
- const std::vector<StringRef> &deadStripRoots() const {
+ ArrayRef<StringRef> deadStripRoots() const {
return _deadStripRoots;
}
@@ -106,7 +106,7 @@ public:
/// options which are used to configure LLVM's command line settings.
/// For instance the -debug-only XXX option can be used to dynamically
/// trace different parts of LLVM and lld.
- const std::vector<const char *> &llvmOptions() const { return _llvmOptions; }
+ ArrayRef<const char *> llvmOptions() const { return _llvmOptions; }
/// \name Methods used by Drivers to configure TargetInfo
/// @{
OpenPOWER on IntegriCloud