diff options
author | alon@honor <none@none> | 2010-10-07 22:50:33 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-07 22:50:33 -0700 |
commit | d0eb15c81a09cf011c5f660413e593b0c09ff5fb (patch) | |
tree | a71c70048458637f3a595a7e39b5cfee130a3e4a /src/jsifier.js | |
parent | 4de0755572570e6de83788998e8288724b45b2fa (diff) |
begin work to adapt to llvm 2.8 | TESTS BROKEN
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 66beb0bf..12017e2a 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -440,7 +440,9 @@ function JSify(data) { var LABEL_IDs = {}; var LABEL_ID_COUNTER = 0; function getLabelId(label) { - //print('needs id: ' + label + ' : ' + JSON.stringify(LABEL_IDs)); + label = label.substr(1); + if (label === 'entry') return '-1'; + if (label === parseInt(label)) return label; // clang label = toNiceIdent(label); if (label in LABEL_IDs) return LABEL_IDs[label]; return LABEL_IDs[label] = LABEL_ID_COUNTER ++; |