diff options
author | Michael Meissner <meissner@cygnus.com> | 1997-08-15 17:48:56 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1997-08-15 17:48:56 +0000 |
commit | ebc25a17d4905886b4b2aeb8e537574f9c21680b (patch) | |
tree | c7fb170296be6703d606b5f60632a6ddc6ac034f /gcc/haifa-sched.c | |
parent | 62603f9e83e1272361269dc78758dfb1edb2f49c (diff) | |
download | gcc-ebc25a17d4905886b4b2aeb8e537574f9c21680b.zip gcc-ebc25a17d4905886b4b2aeb8e537574f9c21680b.tar.gz gcc-ebc25a17d4905886b4b2aeb8e537574f9c21680b.tar.bz2 |
Use rtl macros for names of NOTEs.
From-SVN: r14810
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r-- | gcc/haifa-sched.c | 55 |
1 files changed, 10 insertions, 45 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index ced0814..b8d83ad 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -7374,51 +7374,16 @@ debug_dependencies () int n; fprintf (dump, ";; %6d ", INSN_UID (insn)); if (GET_CODE (insn) == NOTE) - switch (n = NOTE_LINE_NUMBER (insn)) - { - case NOTE_INSN_DELETED: - fprintf (dump, "NOTE_INSN_DELETED"); - break; - case NOTE_INSN_BLOCK_BEG: - fprintf (dump, "NOTE_INSN_BLOCK_BEG"); - break; - case NOTE_INSN_BLOCK_END: - fprintf (dump, "NOTE_INSN_BLOCK_END"); - break; - case NOTE_INSN_LOOP_BEG: - fprintf (dump, "NOTE_INSN_LOOP_BEG"); - break; - case NOTE_INSN_LOOP_END: - fprintf (dump, "NOTE_INSN_LOOP_END"); - break; - case NOTE_INSN_LOOP_CONT: - fprintf (dump, "NOTE_INSN_LOOP_CONT"); - break; - case NOTE_INSN_LOOP_VTOP: - fprintf (dump, "NOTE_INSN_LOOP_VTOP"); - break; - case NOTE_INSN_FUNCTION_BEG: - fprintf (dump, "NOTE_INSN_FUNCTION_BEG"); - break; - case NOTE_INSN_FUNCTION_END: - fprintf (dump, "NOTE_INSN_FUNCTION_END"); - break; - case NOTE_INSN_EH_REGION_BEG: - fprintf (dump, "NOTE_INSN_EH_REGION_BEG"); - break; - case NOTE_INSN_EH_REGION_END: - fprintf (dump, "NOTE_INSN_EH_REGION_END"); - break; - case NOTE_INSN_SETJMP: - fprintf (dump, "NOTE_INSN_SETJMP"); - break; - default: - if (n > 0) - fprintf (dump, "NOTE_LINE_NUMBER %d", n); - else - fprintf (dump, "??? UNRECOGNIZED NOTE %d", n); - } - fprintf (dump, "\n"); + { + n = NOTE_LINE_NUMBER (insn); + if (n < 0) + fprintf (dump, "%s\n", GET_NOTE_INSN_NAME (n)); + else + fprintf (dump, "line %d, file %s\n", n, + NOTE_SOURCE_FILE (insn)); + } + else + fprintf (dump, " {%s}\n", GET_RTX_NAME (insn)); continue; } |