Apply changes to migrate to upstream. (Nov 25th 2011)
Change-Id: I3fd430640732fce5366e789bacd96628bc525616
diff --git a/lib/ExecutionEngine/Compiler.cpp b/lib/ExecutionEngine/Compiler.cpp
index 4351079..3f87d39 100644
--- a/lib/ExecutionEngine/Compiler.cpp
+++ b/lib/ExecutionEngine/Compiler.cpp
@@ -679,8 +679,7 @@
// Add MC code generation passes to pass manager
llvm::MCContext *Ctx;
- if (TM->addPassesToEmitMC(MCCodeGenPasses, Ctx, OutSVOS,
- CodeGenOptLevel, false)) {
+ if (TM->addPassesToEmitMC(MCCodeGenPasses, Ctx, OutSVOS, false)) {
setError("Fail to add passes to emit file");
return 1;
}