print-tree.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Declarations for printing trees in human readable form
  2. Copyright (C) 2013-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_PRINT_TREE_H
  16. #define GCC_PRINT_TREE_H
  17. extern void debug_tree (tree);
  18. extern void debug_raw (const tree_node &ref);
  19. extern void debug_raw (const tree_node *ptr);
  20. extern void debug (const tree_node &ref);
  21. extern void debug (const tree_node *ptr);
  22. extern void debug_verbose (const tree_node &ref);
  23. extern void debug_verbose (const tree_node *ptr);
  24. extern void debug_head (const tree_node &ref);
  25. extern void debug_head (const tree_node *ptr);
  26. extern void debug_body (const tree_node &ref);
  27. extern void debug_body (const tree_node *ptr);
  28. extern void debug_vec_tree (vec<tree, va_gc> *);
  29. extern void debug (vec<tree, va_gc> &ref);
  30. extern void debug (vec<tree, va_gc> *ptr);
  31. extern void debug_raw (vec<tree, va_gc> &ref);
  32. extern void debug_raw (vec<tree, va_gc> *ptr);
  33. #ifdef BUFSIZ
  34. extern void dump_addr (FILE*, const char *, const void *);
  35. extern void print_node (FILE *, const char *, tree, int);
  36. extern void print_node_brief (FILE *, const char *, const_tree, int);
  37. extern void indent_to (FILE *, int);
  38. #endif
  39. #endif // GCC_PRINT_TREE_H