aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/analyzer.js4
-rw-r--r--src/intertyper.js1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 974dd67d..3feaff92 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -69,10 +69,10 @@ function analyzer(data, sidePass) {
subItem.labels = [];
// no explicit 'entry' label in clang on LLVM 2.8 - most of the time, but not all the time! - so we add one if necessary
- if (LLVM_STYLE == 'new' && item.items[i+1].intertype !== 'label') {
+ if (item.items[i+1].intertype !== 'label') {
item.items.splice(i+1, 0, {
intertype: 'label',
- ident: toNiceIdent('%0'),
+ ident: toNiceIdent('%1'),
lineNum: subItem.lineNum + '.5'
});
}
diff --git a/src/intertyper.js b/src/intertyper.js
index c9580319..7bc23653 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -540,6 +540,7 @@ function intertyper(data, sidePass, baseLineNums) {
return !(token.text in LLVM.LINKAGES || token.text in LLVM.PARAM_ATTR || token.text in LLVM.FUNC_ATTR || token.text in LLVM.CALLING_CONVENTIONS);
});
var params = parseParamTokens(item.tokens[2].item.tokens);
+ if (sidePass) dprint('unparsedFunctions', 'Processing function: ' + item.tokens[1].text);
return [{
intertype: 'function',
ident: toNiceIdent(item.tokens[1].text),