]> granicus.if.org Git - llvm/commitdiff
Remove a '#if 0' that wasn't intended for commit in r293173.
authorDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 26 Jan 2017 12:10:43 +0000 (12:10 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Thu, 26 Jan 2017 12:10:43 +0000 (12:10 +0000)
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

utils/TableGen/GlobalISelEmitter.cpp

index c5094cda43098aef3d5a08dbfa6335ad7dda253a..02ef6fa47c1ee33116d970aaee9a5c5906d29bb9 100644 (file)
@@ -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.