Match addPassesToEmitFile API change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70409 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/clang-cc/Backend.cpp b/tools/clang-cc/Backend.cpp
index 2d8ca82..078c7a1 100644
--- a/tools/clang-cc/Backend.cpp
+++ b/tools/clang-cc/Backend.cpp
@@ -260,7 +260,8 @@
     // Normal mode, emit a .s file by running the code generator.
     // Note, this also adds codegenerator level optimization passes.
     switch (TM->addPassesToEmitFile(*PM, *AsmOutStream,
-                                    TargetMachine::AssemblyFile, Fast)) {
+                                    TargetMachine::AssemblyFile,
+                                    CompileOpts.OptimizationLevel)) {
     default:
     case FileModel::Error:
       Error = "Unable to interface with target machine!\n";
@@ -269,7 +270,8 @@
       break;
     }
     
-    if (TM->addPassesToEmitFileFinish(*CodeGenPasses, 0, Fast)) {
+    if (TM->addPassesToEmitFileFinish(*CodeGenPasses, 0,
+                                      CompileOpts.OptimizationLevel)) {
       Error = "Unable to interface with target machine!\n";
       return false;
     }