diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-05 17:57:54 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-05 17:57:54 -0800 |
commit | 0591fabb67954257cfa3a024b78f46a392fd4a31 (patch) | |
tree | f987a75683a7fd3ec726ab3182ff84872d14bbd8 /src/intertyper.js | |
parent | b2c5374402ae4e952c652772e9907a8f1c0efec9 (diff) |
support for external variables in runtime linking
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 4d85b8a5..19eb658e 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -488,6 +488,7 @@ function intertyper(data, sidePass, baseLineNums) { } else { // variable var ident = item.tokens[0].text; + var private_ = findTokenText(item, 'private') >= 0; cleanOutTokens(LLVM.GLOBAL_MODIFIERS, item.tokens, [2, 3]); var external = false; if (item.tokens[2].text === 'external') { @@ -500,6 +501,7 @@ function intertyper(data, sidePass, baseLineNums) { ident: toNiceIdent(ident), type: item.tokens[2].text, external: external, + private_: private_, lineNum: item.lineNum }; Types.needAnalysis[ret.type] = 0; |