gcc-bb.c 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Dump or view gcc basic blocks.
  2. This program is free software: you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation, either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  12. #include "gml4gtk-plugin.h"
  13. static void
  14. dump_bb_to_file (char *fname, char *list)
  15. {
  16. return;
  17. }
  18. /* Public function to dump gcc basic blocks. */
  19. void
  20. dot_plugin_dump_bb (char *list)
  21. {
  22. dot_plugin_common.init ();
  23. dump_bb_to_file ("dump-bb.dot", list);
  24. dot_plugin_common.finish ();
  25. return;
  26. }
  27. /* Public function to view basic blocks. */
  28. void
  29. dot_plugin_view_bb (char *list)
  30. {
  31. dot_plugin_common.init ();
  32. dump_bb_to_file (dot_plugin_common.temp_file_name, list);
  33. dot_plugin_common.show (dot_plugin_common.temp_file_name);
  34. dot_plugin_common.finish ();
  35. return;
  36. }