diff options
author | alon@honor <none@none> | 2010-10-18 22:55:20 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-18 22:55:20 -0700 |
commit | 377185c933bd55a260a525d1eb8316c8ea896da1 (patch) | |
tree | 4ce42aa8ebb201efb8056e4f70f3eb46fc33e036 /src/analyzer.js | |
parent | 890130e93bc1128d7b5fbdcc512e243ef78cd712 (diff) |
minor fixes and cleanups
Diffstat (limited to 'src/analyzer.js')
-rw-r--r-- | src/analyzer.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/analyzer.js b/src/analyzer.js index d1039e1c..ca0ada1c 100644 --- a/src/analyzer.js +++ b/src/analyzer.js @@ -84,7 +84,7 @@ function analyzer(data) { if (type.length == 1) return; if (data.types[type]) return; if (['internal', 'inbounds', 'void'].indexOf(type) != -1) return; - dprint('types', '// addType: ' + type); + //dprint('types', '// addType: ' + type); var check = new RegExp(/^\[(\d+)\ x\ (.*)\]$/g).exec(type); // 'blocks': [14 x %struct.X] etc. if (check) { @@ -119,10 +119,16 @@ function analyzer(data) { walkJSON(data, function(item) { if (!item) return; if (item.type) { - addType(!item.type ? item.type : item.type, data); + addType(item.type, data); } if (item.type2) { - addType(!item.type2.text ? item.type2 : item.type2.text, data); + addType(item.type2, data); + } + if (item.pointerType) { + addType(item.pointerType, data); + } + if (item.valueType) { + addType(item.valueType, data); } }); this.forwardItem(data, 'Typeanalyzer'); |