This repository was archived by the owner on Mar 28, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -139,24 +139,6 @@ template <class PredicateTy> class PredicateListMatcher {
139
139
return make_range (predicates_begin (), predicates_end ());
140
140
}
141
141
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
160
142
// / Emit a C++ expression that tests whether all the predicates are met.
161
143
template <class Arg1 >
162
144
void emitCxxPredicatesExpr (raw_ostream &OS, Arg1&& arg1) const {
@@ -190,7 +172,6 @@ template <class PredicateTy> class PredicateListMatcher {
190
172
Separator = " && " ;
191
173
}
192
174
}
193
- #endif
194
175
};
195
176
196
177
// / Generates code to check a predicate of an operand.
You can’t perform that action at this time.
0 commit comments