summaryrefslogtreecommitdiffstats
path: root/lld/wasm/InputFiles.h
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/wasm/InputFiles.h
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/wasm/InputFiles.h')
-rw-r--r--lld/wasm/InputFiles.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/InputFiles.h b/lld/wasm/InputFiles.h
index 52014258fee..ed2cb75097f 100644
--- a/lld/wasm/InputFiles.h
+++ b/lld/wasm/InputFiles.h
@@ -112,7 +112,7 @@ public:
std::vector<uint32_t> TypeMap;
std::vector<InputSegment *> Segments;
- const std::vector<Symbol *> &getSymbols() { return Symbols; }
+ ArrayRef<Symbol *> getSymbols() { return Symbols; }
private:
Symbol *createDefined(const WasmSymbol &Sym,
OpenPOWER on IntegriCloud