projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c1b441
)
[ELF] Change vector<Symbol *> to SmallVector. NFC
author
Fangrui Song
<i@maskray.me>
Tue, 1 Feb 2022 08:16:42 +0000
(
00:16
-0800)
committer
Fangrui Song
<i@maskray.me>
Tue, 1 Feb 2022 08:16:42 +0000
(
00:16
-0800)
lld/ELF/Driver.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/Driver.cpp
b/lld/ELF/Driver.cpp
index
a1daae6
..
716523c
100644
(file)
--- a/
lld/ELF/Driver.cpp
+++ b/
lld/ELF/Driver.cpp
@@
-1719,7
+1719,7
@@
static void handleUndefinedGlob(StringRef arg) {
// Calling sym->extract() in the loop is not safe because it may add new
// symbols to the symbol table, invalidating the current iterator.
-
std::vector<Symbol *
> syms;
+
SmallVector<Symbol *, 0
> syms;
for (Symbol *sym : symtab->symbols())
if (!sym->isPlaceholder() && pat->match(sym->getName()))
syms.push_back(sym);