From: Daniel Sanders Date: Thu, 26 Jan 2017 12:10:43 +0000 (+0000) Subject: Remove a '#if 0' that wasn't intended for commit in r293173. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2598d4df6c98912249ff886a8ed8cd1707d585c;p=llvm 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 --- diff --git a/utils/TableGen/GlobalISelEmitter.cpp b/utils/TableGen/GlobalISelEmitter.cpp index c5094cda430..02ef6fa47c1 100644 --- a/utils/TableGen/GlobalISelEmitter.cpp +++ b/utils/TableGen/GlobalISelEmitter.cpp @@ -139,24 +139,6 @@ public: return make_range(predicates_begin(), predicates_end()); } -#if 0 - /// Emit a C++ expression that tests whether all the predicates are met. - template - void emitCxxPredicatesExpr(raw_ostream &OS, Args&&... args) const { - if (Predicates.empty()) { - OS << "true"; - return; - } - - StringRef Separator = ""; - for (const auto &Predicate : predicates()) { - OS << Separator << "("; - Predicate->emitCxxPredicateExpr(OS, std::forward(args)...); - OS << ")"; - Separator = " && "; - } - } -#else /// Emit a C++ expression that tests whether all the predicates are met. template void emitCxxPredicatesExpr(raw_ostream &OS, Arg1&& arg1) const { @@ -190,7 +172,6 @@ public: Separator = " && "; } } -#endif }; /// Generates code to check a predicate of an operand.