]> granicus.if.org Git - clang/commitdiff
Revert "[ThinLTO] Handle -fdebug-pass-manager for backend invocations via clang"
authorTeresa Johnson <tejohnson@google.com>
Sat, 11 Nov 2017 01:06:41 +0000 (01:06 +0000)
committerTeresa Johnson <tejohnson@google.com>
Sat, 11 Nov 2017 01:06:41 +0000 (01:06 +0000)
This reverts commit r317951 and r317952. The new test is aborting on
some bots and I'll need to investigate later.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317959 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BackendUtil.cpp
test/CodeGen/thinlto-debug-pm.c [deleted file]

index 0df446327a833e5e23ed63ac1aa0e491bcb6add2..893967a9d6612359b039bbc3e59a8f0b9e1623a8 100644 (file)
@@ -1073,7 +1073,6 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
   initTargetOptions(Conf.Options, CGOpts, TOpts, LOpts, HeaderOpts);
   Conf.SampleProfile = std::move(SampleProfile);
   Conf.UseNewPM = CGOpts.ExperimentalNewPassManager;
-  Conf.DebugPassManager = CGOpts.DebugPassManager;
   switch (Action) {
   case Backend_EmitNothing:
     Conf.PreCodeGenModuleHook = [](size_t Task, const Module &Mod) {
diff --git a/test/CodeGen/thinlto-debug-pm.c b/test/CodeGen/thinlto-debug-pm.c
deleted file mode 100644 (file)
index 4be12e2..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-// Test to ensure -fdebug-pass-manager works when invoking the
-// ThinLTO backend path with the new PM.
-// REQUIRES: x86-registered-target
-// RUN: %clang -O2 %s -flto=thin -c -o %t.o
-// RUN: llvm-lto -thinlto -o %t %t.o
-// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-obj -O2 -o %t2.o -x ir %t.o -fthinlto-index=%t.thinlto.bc -fdebug-pass-manager -fexperimental-new-pass-manager 2>&1 | FileCheck %s
-// CHECK: Running pass:
-
-void foo() {
-}