aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-24 15:43:08 -0700
committeralon@honor <none@none>2010-10-24 15:43:08 -0700
commit46b42f3c027f8848bb11a84307b7c7ed332421ac (patch)
treed38631e669f0c5c1ac330b86390aa4bd62867a26 /src
parentfa7440b389910fefe7b3ea713a21b8a6b44daa6f (diff)
fixes for more complex statics test
Diffstat (limited to 'src')
-rw-r--r--src/intertyper.js2
-rw-r--r--src/library.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/intertyper.js b/src/intertyper.js
index fa3b1f45..ee59237e 100644
--- a/src/intertyper.js
+++ b/src/intertyper.js
@@ -290,7 +290,7 @@ function intertyper(data) {
} else {
// variable
var ident = item.tokens[0].text;
- while (item.tokens[2].text in set('private', 'constant', 'appending', 'global', 'weak_odr', 'internal', 'linkonce', 'weak'))
+ while (item.tokens[2].text in set('private', 'constant', 'appending', 'global', 'weak_odr', 'internal', 'linkonce', 'linkonce_odr', 'weak'))
item.tokens.splice(2, 1);
var ret = {
__result__: true,
diff --git a/src/library.js b/src/library.js
index 896aae38..ba854885 100644
--- a/src/library.js
+++ b/src/library.js
@@ -125,10 +125,10 @@ var Library = {
},
__cxa_guard_acquire: function() {
- return 0;
+ return 1;
},
__cxa_guard_release: function() {
- return 0;
+ return 1;
},
llvm_eh_exception: function() {