diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-11-02 00:29:06 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-11-02 00:29:06 +0000 |
| commit | 07b83767a041cbe3dcb5b1ae6144c551e45b33b1 (patch) | |
| tree | b1e781abb6fa6a08754c3a5a5b1e121f7a12c569 | |
| parent | cb640964a8b884308cb6ff71ff91251de1607762 (diff) | |
| download | bcm5719-llvm-07b83767a041cbe3dcb5b1ae6144c551e45b33b1.tar.gz bcm5719-llvm-07b83767a041cbe3dcb5b1ae6144c551e45b33b1.zip | |
Use ArrayRef instead of const std::vector.
llvm-svn: 285776
| -rw-r--r-- | lld/ELF/SymbolTable.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lld/ELF/SymbolTable.h b/lld/ELF/SymbolTable.h index 45f3e390dd7..08cbaefecc7 100644 --- a/lld/ELF/SymbolTable.h +++ b/lld/ELF/SymbolTable.h @@ -44,19 +44,10 @@ public: void addFile(InputFile *File); void addCombinedLtoObject(); - llvm::ArrayRef<Symbol *> getSymbols() const { return SymVector; } - - const std::vector<ObjectFile<ELFT> *> &getObjectFiles() const { - return ObjectFiles; - } - - const std::vector<BinaryFile *> &getBinaryFiles() const { - return BinaryFiles; - } - - const std::vector<SharedFile<ELFT> *> &getSharedFiles() const { - return SharedFiles; - } + ArrayRef<Symbol *> getSymbols() const { return SymVector; } + ArrayRef<ObjectFile<ELFT> *> getObjectFiles() const { return ObjectFiles; } + ArrayRef<BinaryFile *> getBinaryFiles() const { return BinaryFiles; } + ArrayRef<SharedFile<ELFT> *> getSharedFiles() const { return SharedFiles; } DefinedRegular<ELFT> *addAbsolute(StringRef Name, uint8_t Visibility = llvm::ELF::STV_HIDDEN); |

