[MLIR][NFC] Add SymbolUse::UseRange::empty()
authorRahul Joshi <jurahul@google.com>
Thu, 30 Jul 2020 21:18:33 +0000 (14:18 -0700)
committerRahul Joshi <jurahul@google.com>
Thu, 30 Jul 2020 22:18:58 +0000 (15:18 -0700)
Differential Revision: https://reviews.llvm.org/D84984

mlir/include/mlir/IR/SymbolTable.h

index 7e52011..4e41fe5 100644 (file)
@@ -150,6 +150,7 @@ public:
     using iterator = std::vector<SymbolUse>::const_iterator;
     iterator begin() const { return uses.begin(); }
     iterator end() const { return uses.end(); }
+    bool empty() const { return uses.empty(); }
 
   private:
     std::vector<SymbolUse> uses;