aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/NaCl/PNaClABISimplify.cpp
diff options
context:
space:
mode:
authorDan Gohman <sunfish@google.com>2014-02-25 11:20:37 -0800
committerDan Gohman <sunfish@google.com>2014-02-25 11:58:56 -0800
commit06c4eaa6ecd6ed4d93c9fc1da3e03ad3ee900bec (patch)
treeba183abdfe44c8a7e300ae2bda7e2dfd6468199f /lib/Transforms/NaCl/PNaClABISimplify.cpp
parent868e67812c09905c35ee6e09393d4646c1364505 (diff)
Re-introduce ConstantExpr expansion for constants containing illegal types.
Diffstat (limited to 'lib/Transforms/NaCl/PNaClABISimplify.cpp')
-rw-r--r--lib/Transforms/NaCl/PNaClABISimplify.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/NaCl/PNaClABISimplify.cpp b/lib/Transforms/NaCl/PNaClABISimplify.cpp
index 416c38dd17..e7dcba353f 100644
--- a/lib/Transforms/NaCl/PNaClABISimplify.cpp
+++ b/lib/Transforms/NaCl/PNaClABISimplify.cpp
@@ -116,11 +116,9 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManager &PM) {
// are expanded out later.
PM.add(createFlattenGlobalsPass());
-#if 0 // XXX EMSCRIPTEN: We can handle ConstantExprs in our backend.
// We should not place arbitrary passes after ExpandConstantExpr
// because they might reintroduce ConstantExprs.
PM.add(createExpandConstantExprPass());
-#endif
// PromoteIntegersPass does not handle constexprs and creates GEPs,
// so it goes between those passes.
PM.add(createPromoteIntegersPass());