Add new -d option to tblgen. It writes a make(1)-style dependency file.
[oota-llvm.git] / utils / TableGen / TGParser.h
index 9cdf68ff974947e43409d62981461d59e919702b..419a99b13ffb1a6ca21496e1c71a69346c1999b2 100644 (file)
@@ -66,6 +66,9 @@ public:
   bool TokError(const Twine &Msg) const {
     return Error(Lex.getLoc(), Msg);
   }
+  const std::vector<std::string> &getDependencies() const {
+    return Lex.getDependencies();
+  }
 private:  // Semantic analysis methods.
   bool AddValue(Record *TheRec, SMLoc Loc, const RecordVal &RV);
   bool SetValue(Record *TheRec, SMLoc Loc, const std::string &ValName,