[llvm] r293174 - Remove a '#if 0' that wasn't intended for commit in r293173.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 04:10:45 PST 2017


Author: dsanders
Date: Thu Jan 26 06:10:43 2017
New Revision: 293174

URL: http://llvm.org/viewvc/llvm-project?rev=293174&view=rev
Log:
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).


Modified:
    llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp

Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=293174&r1=293173&r2=293174&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Thu Jan 26 06:10:43 2017
@@ -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 <class... Args>
-  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...>(args)...);
-      OS << ")";
-      Separator = " && ";
-    }
-  }
-#else
   /// Emit a C++ expression that tests whether all the predicates are met.
   template <class Arg1>
   void emitCxxPredicatesExpr(raw_ostream &OS, Arg1&& arg1) const {
@@ -190,7 +172,6 @@ public:
       Separator = " && ";
     }
   }
-#endif
 };
 
 /// Generates code to check a predicate of an operand.




More information about the llvm-commits mailing list