forked from OSchip/llvm-project
[NFC] Revert unnecessary parts of b91c267380
Inb91c267380
I accidentally introduced fixes that were not necessary after1a93285c68
. All but the `llvm_unreachable` are reverted again.
This commit is contained in:
parent
a0236de7a9
commit
a8f039632d
|
@ -412,7 +412,7 @@ bool llvm::omp::isValidTraitPropertyForTraitSetAndSelector(
|
|||
std::string llvm::omp::listOpenMPContextTraitSets() {
|
||||
std::string S;
|
||||
#define OMP_TRAIT_SET(Enum, Str) \
|
||||
if (!StringRef(Str).equals("invalid")) \
|
||||
if (StringRef(Str) != "invalid") \
|
||||
S.append("'").append(Str).append("'").append(" ");
|
||||
#include "llvm/Frontend/OpenMP/OMPKinds.def"
|
||||
S.pop_back();
|
||||
|
@ -422,7 +422,7 @@ std::string llvm::omp::listOpenMPContextTraitSets() {
|
|||
std::string llvm::omp::listOpenMPContextTraitSelectors(TraitSet Set) {
|
||||
std::string S;
|
||||
#define OMP_TRAIT_SELECTOR(Enum, TraitSetEnum, Str, ReqProp) \
|
||||
if (TraitSet::TraitSetEnum == Set && !StringRef(Str).equals("invalid")) \
|
||||
if (TraitSet::TraitSetEnum == Set && StringRef(Str) != "Invalid") \
|
||||
S.append("'").append(Str).append("'").append(" ");
|
||||
#include "llvm/Frontend/OpenMP/OMPKinds.def"
|
||||
S.pop_back();
|
||||
|
@ -436,7 +436,7 @@ llvm::omp::listOpenMPContextTraitProperties(TraitSet Set,
|
|||
#define OMP_TRAIT_PROPERTY(Enum, TraitSetEnum, TraitSelectorEnum, Str) \
|
||||
if (TraitSet::TraitSetEnum == Set && \
|
||||
TraitSelector::TraitSelectorEnum == Selector && \
|
||||
!StringRef(Str).equals("invalid")) \
|
||||
StringRef(Str) != "invalid") \
|
||||
S.append("'").append(Str).append("'").append(" ");
|
||||
#include "llvm/Frontend/OpenMP/OMPKinds.def"
|
||||
S.pop_back();
|
||||
|
|
Loading…
Reference in New Issue