summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-02-23 03:34:37 +0000
committerRui Ueyama <ruiu@google.com>2016-02-23 03:34:37 +0000
commitc00718fd8e19eb078a9d263c1e59587fbfd6b00a (patch)
tree4e5665b6e8bf83842b190ec7250b5091a4d7be38
parent6307eb551822a925c3a39ae1c814e4b46893a4b4 (diff)
downloadbcm5719-llvm-c00718fd8e19eb078a9d263c1e59587fbfd6b00a.tar.gz
bcm5719-llvm-c00718fd8e19eb078a9d263c1e59587fbfd6b00a.zip
Use TinyPtrVector<Ty *> instead of SmallVector<Ty *, 1>.
Thanks to Sean Silva for the suggestion. llvm-svn: 261606
-rw-r--r--lld/ELF/InputSection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.h b/lld/ELF/InputSection.h
index 26956c72a96..f0d497251cb 100644
--- a/lld/ELF/InputSection.h
+++ b/lld/ELF/InputSection.h
@@ -12,6 +12,7 @@
#include "Config.h"
#include "lld/Core/LLVM.h"
+#include "llvm/ADT/TinyPtrVector.h"
#include "llvm/Object/ELF.h"
namespace lld {
@@ -160,7 +161,7 @@ public:
void writeTo(uint8_t *Buf);
// Relocation sections that refer to this one.
- SmallVector<const Elf_Shdr *, 1> RelocSections;
+ llvm::TinyPtrVector<const Elf_Shdr *> RelocSections;
// The offset from beginning of the output sections this section was assigned
// to. The writer sets a value.
OpenPOWER on IntegriCloud