[lld] r261606 - Use TinyPtrVector<Ty *> instead of SmallVector<Ty *, 1>.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 22 19:34:37 PST 2016
Author: ruiu
Date: Mon Feb 22 21:34:37 2016
New Revision: 261606
URL: http://llvm.org/viewvc/llvm-project?rev=261606&view=rev
Log:
Use TinyPtrVector<Ty *> instead of SmallVector<Ty *, 1>.
Thanks to Sean Silva for the suggestion.
Modified:
lld/trunk/ELF/InputSection.h
Modified: lld/trunk/ELF/InputSection.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.h?rev=261606&r1=261605&r2=261606&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.h (original)
+++ lld/trunk/ELF/InputSection.h Mon Feb 22 21:34:37 2016
@@ -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.
More information about the llvm-commits
mailing list