diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-12-15 20:52:08 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-12-15 20:52:08 -0800 |
commit | 3939368ad428f86e0d21674e13c7ff684c2cfb3c (patch) | |
tree | 42e08891cb5f259937184a62a1a9a59c36d195fe /src/parseTools.js | |
parent | 8783a09b1d0a02a378406b9d879818a6c02a6358 (diff) |
misc fixes and improvements - thanks go to tuba
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 3f9a1481..fa8b6ac6 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -236,7 +236,7 @@ function parseParamTokens(params) { if (params[params.length-1].text != ',') { params.push({ text: ',' }); } - var absIndex = 0; + var anonymousIndex = 0; while (params.length > 0) { var i = 0; while (params[i].text != ',') i++; @@ -255,8 +255,9 @@ function parseParamTokens(params) { intertype: 'value', type: segment[0].text, value: null, - ident: toNiceIdent('%') + absIndex + ident: toNiceIdent('%') + anonymousIndex }); + anonymousIndex ++; } } else if (segment[1].text in PARSABLE_LLVM_FUNCTIONS) { ret.push(parseLLVMFunctionCall(segment)); @@ -277,7 +278,6 @@ function parseParamTokens(params) { // } else { // throw "what is this params token? " + JSON.stringify(segment); } - absIndex ++; } return ret; } |