Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit c2598d4

Browse files
committed
Remove a '#if 0' that wasn't intended for commit in r293173.
The '#if 0' contained the code I had intended to use but clang rejects it (possibly incorrectly). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293174 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent dbafc59 commit c2598d4

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

utils/TableGen/GlobalISelEmitter.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -139,24 +139,6 @@ template <class PredicateTy> class PredicateListMatcher {
139139
return make_range(predicates_begin(), predicates_end());
140140
}
141141

142-
#if 0
143-
/// Emit a C++ expression that tests whether all the predicates are met.
144-
template <class... Args>
145-
void emitCxxPredicatesExpr(raw_ostream &OS, Args&&... args) const {
146-
if (Predicates.empty()) {
147-
OS << "true";
148-
return;
149-
}
150-
151-
StringRef Separator = "";
152-
for (const auto &Predicate : predicates()) {
153-
OS << Separator << "(";
154-
Predicate->emitCxxPredicateExpr(OS, std::forward<Args...>(args)...);
155-
OS << ")";
156-
Separator = " && ";
157-
}
158-
}
159-
#else
160142
/// Emit a C++ expression that tests whether all the predicates are met.
161143
template <class Arg1>
162144
void emitCxxPredicatesExpr(raw_ostream &OS, Arg1&& arg1) const {
@@ -190,7 +172,6 @@ template <class PredicateTy> class PredicateListMatcher {
190172
Separator = " && ";
191173
}
192174
}
193-
#endif
194175
};
195176

196177
/// Generates code to check a predicate of an operand.

0 commit comments

Comments
 (0)