diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-11-18 21:10:37 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-11-18 21:10:37 -0800 |
commit | 5c7d13c59133a45430bac1ce01540428a67292a4 (patch) | |
tree | 99fe9d210c895471a9775e48d37667d61cf5c4e6 /src/analyzer.js | |
parent | f30d5d97a0090777a871f93b76a4657836828443 (diff) |
fix parsing of |noalias| in function calls, minor fix to |getelementptr| type discovery error
Diffstat (limited to 'src/analyzer.js')
-rw-r--r-- | src/analyzer.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index 494355c5..b23da395 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -221,6 +221,7 @@ function analyzer(data, givenTypes) { ident: item.ident, type: item.value.type, origin: item.value.intertype, + lineNum: item.lineNum, uses: parseInt(item.value.tokens.slice(-1)[0].item.tokens[0].text.split('=')[1]), }; } @@ -266,6 +267,8 @@ function analyzer(data, givenTypes) { var pointedType = removePointing(variable.type); if (variable.origin == 'getelementptr') { // Use our implementation that emulates pointers etc. + // XXX Can we perhaps nativize some of these? However to do so, we need to discover their + // true types; we have '?' for them now, as they cannot be discovered in the intertyper. variable.impl = VAR_EMULATED; } else if (OPTIMIZE && variable.pointingLevels === 0 && !variable.hasAddrTaken) { // A simple int value, can be implemented as a native variable |