[lld] r282307 - Combine two StringSwitch::Cases because Cases now can take 6 parameters.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 23 15:22:34 PDT 2016
Author: ruiu
Date: Fri Sep 23 17:22:34 2016
New Revision: 282307
URL: http://llvm.org/viewvc/llvm-project?rev=282307&view=rev
Log:
Combine two StringSwitch::Cases because Cases now can take 6 parameters.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=282307&r1=282306&r2=282307&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Fri Sep 23 17:22:34 2016
@@ -1086,8 +1086,7 @@ static int precedence(StringRef Op) {
.Cases("*", "/", 5)
.Cases("+", "-", 4)
.Cases("<<", ">>", 3)
- .Cases("<", "<=", ">", ">=", 2) // Cases takes up to four cases.
- .Cases("==", "!=", 2)
+ .Cases("<", "<=", ">", ">=", "==", "!=", 2)
.Cases("&", "|", 1)
.Default(-1);
}
More information about the llvm-commits
mailing list