diff options
author | alon@honor <none@none> | 2010-09-27 20:54:16 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-09-27 20:54:16 -0700 |
commit | a13db65ea9daf3ecda49da0184ba12938c2218b4 (patch) | |
tree | cc1ea9d97db7b0cad6746c9ea5ab13c9488bace2 /src/intertyper.js | |
parent | 3172545cfb1945f96d4b9d81942f643aeab7b873 (diff) |
parseLLVMFunctionCall/finalizeLLVMFunctionCall cleanup
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 8fb15654..22a953f1 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -340,7 +340,7 @@ function intertyper(data) { item.type = { text: removePointing(item.pointerType.text) }; if (item.tokens[2].text == 'getelementptr') { var last = getTokenIndexByText(item.tokens, ';'); - var data = parseFunctionCall(item.tokens.slice(1, last)); + var data = parseLLVMFunctionCall(item.tokens.slice(1, last)); item.intertype = 'fastgetelementptrload'; item.type = data.type; item.params = data.params; @@ -378,7 +378,7 @@ function intertyper(data) { var segment = [ item.tokens[first], { text: 'getelementptr' }, null, { item: [ { tokens: item.tokens.slice(first, last) } ] } ]; - var data = parseFunctionCall(segment); + var data = parseLLVMFunctionCall(segment); item.intertype = 'getelementptr'; item.type = data.type; item.params = data.params; @@ -496,7 +496,7 @@ function intertyper(data) { __result__: true, intertype: 'store', valueType: item.tokens[1], - value: commaIndex == 3 ? addIdent(item.tokens[2]) : parseFunctionCall(item.tokens.slice(1, commaIndex)), + value: commaIndex == 3 ? addIdent(item.tokens[2]) : parseLLVMFunctionCall(item.tokens.slice(1, commaIndex)), pointerType: item.tokens[commaIndex+1], pointer: item.tokens[commaIndex+2], ident: item.tokens[commaIndex+2].text, |