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:
5b8a3b3
)
Use StringSwitch::Cases. NFC.
author
Rui Ueyama
<ruiu@google.com>
Thu, 29 Sep 2016 22:54:31 +0000
(22:54 +0000)
committer
Rui Ueyama
<ruiu@google.com>
Thu, 29 Sep 2016 22:54:31 +0000
(22:54 +0000)
llvm-svn: 282802
lld/tools/lld/lld.cpp
patch
|
blob
|
history
diff --git
a/lld/tools/lld/lld.cpp
b/lld/tools/lld/lld.cpp
index
8805e02
..
99f3d2d
100644
(file)
--- a/
lld/tools/lld/lld.cpp
+++ b/
lld/tools/lld/lld.cpp
@@
-43,9
+43,7
@@
LLVM_ATTRIBUTE_NORETURN static void die(const Twine &S) {
static Flavor getFlavor(StringRef S) {
return StringSwitch<Flavor>(S)
- .Case("ld", Gnu)
- .Case("ld.lld", Gnu)
- .Case("gnu", Gnu)
+ .Cases("ld", "ld.lld", "gnu", Gnu)
.Case("link", WinLink)
.Case("darwin", Darwin)
.Default(Invalid);