diff options
author | Alon Zakai <azakai@mozilla.com> | 2011-02-19 15:45:17 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2011-02-19 15:45:17 -0800 |
commit | f81feaff967ffdd8212ffe2da8579c4734fc7cbb (patch) | |
tree | a92d47ad3cad7146c704745426ed661714682a89 /src/intertyper.js | |
parent | f4a934a2adec69bc82c42342c7924fdf259f64cc (diff) |
line-specific CORRECT_OVERFLOWS and CORRECT_SIGNS
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index e4a3cf4b..a8254b30 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -86,6 +86,12 @@ var Debugging = { getComment: function(lineNum) { return lineNum in this.llvmLineToSourceLine ? ' //@line ' + this.llvmLineToSourceLine[lineNum] + ' "' + this.llvmLineToSourceFile[lineNum] + '"' : ''; + }, + + getIdentifier: function(lineNum) { + var sourceFile = this.llvmLineToSourceFile[lineNum]; + if (!sourceFile) return null; + return sourceFile.split('/').slice(-1)[0] + ':' + this.llvmLineToSourceLine[lineNum]; } }; |