diff options
Diffstat (limited to 'gcc-4.4.0/gcc/cfglayout.c')
-rw-r--r-- | gcc-4.4.0/gcc/cfglayout.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.4.0/gcc/cfglayout.c b/gcc-4.4.0/gcc/cfglayout.c index d04299639..05aa31587 100644 --- a/gcc-4.4.0/gcc/cfglayout.c +++ b/gcc-4.4.0/gcc/cfglayout.c @@ -557,6 +557,16 @@ insn_file (const_rtx insn) return locator_file (INSN_LOCATOR (insn)); } +/* Return discriminator of the statement that produced this insn. */ +int +insn_discriminator (const_rtx insn) +{ + int loc = INSN_LOCATOR (insn); + if (!loc) + return 0; + return get_discriminator_from_locus (locator_location (loc)); +} + /* Return true if LOC1 and LOC2 locators have the same location and scope. */ bool locator_eq (int loc1, int loc2) |