aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDan Gohman <sunfish@mozilla.com>2014-03-05 19:40:14 -0800
committerDan Gohman <sunfish@mozilla.com>2014-03-05 19:42:53 -0800
commit805f34e607fadc603eefa3120ff514a2f3432392 (patch)
tree7bb1987b9b697e6d00af0b7feb5f1e09509aac29 /lib/Transforms
parentd47d2f44889791561b29646a087e3836a5965942 (diff)
Disable the ResolveAliases and GlobalCleanup passes.
Also add a test for handling of global aliases.
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/NaCl/PNaClABISimplify.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp
index 5678ffaa7f..886e0cc4cc 100644
--- a/lib/Transforms/NaCl/PNaClABISimplify.cpp
+++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp
@@ -77,13 +77,17 @@ void llvm::PNaClABISimplifyAddPreOptPasses(PassManager &PM) {
PM.add(createExpandVarArgsPass());
PM.add(createExpandCtorsPass());
+#if 0 // XXX EMSCRIPTEN: We handle aliases.
PM.add(createResolveAliasesPass());
+#endif
#if 0 // EMSCRIPTEN: no need for tls
PM.add(createExpandTlsPass());
#endif
// GlobalCleanup needs to run after ExpandTls because
// __tls_template_start etc. are extern_weak before expansion
+#if 0 // XXX EMSCRIPTEN: We don't currently have tls, and we don't have the same complications with extern_weak
PM.add(createGlobalCleanupPass());
+#endif
}
void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) {