Explorar o código

Add Dump to Pattern (#715)

Jon Meow %!s(int64=4) %!d(string=hai) anos
pai
achega
f7d8b7f2e2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      executable_semantics/ast/pattern.h

+ 1 - 0
executable_semantics/ast/pattern.h

@@ -42,6 +42,7 @@ class Pattern {
   auto LineNumber() const -> int { return line_num; }
 
   void Print(llvm::raw_ostream& out) const;
+  LLVM_DUMP_METHOD void Dump() const { Print(llvm::errs()); }
 
  protected:
   // Constructs a Pattern representing syntax at the given line number.