From 92a4a833f9c919620891d1b7a203f57481528c4c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 7 Aug 2010 21:48:09 +0000 Subject: [PATCH] Move the bugpoint test passes to a plugin in preparation for having bugpoint use opt. llvm-svn: 110520 --- llvm/test/BugPoint/crash-narrowfunctiontest.ll | 3 ++- llvm/test/BugPoint/remove_arguments_test.ll | 3 ++- llvm/tools/Makefile | 2 +- llvm/tools/{bugpoint => bugpoint-passes}/TestPasses.cpp | 0 4 files changed, 5 insertions(+), 3 deletions(-) rename llvm/tools/{bugpoint => bugpoint-passes}/TestPasses.cpp (100%) diff --git a/llvm/test/BugPoint/crash-narrowfunctiontest.ll b/llvm/test/BugPoint/crash-narrowfunctiontest.ll index 6ad09d2e25cd..aec90f1960a0 100644 --- a/llvm/test/BugPoint/crash-narrowfunctiontest.ll +++ b/llvm/test/BugPoint/crash-narrowfunctiontest.ll @@ -1,6 +1,7 @@ ; Test that bugpoint can narrow down the testcase to the important function +; FIXME: This likely fails on windows ; -; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null +; RUN: bugpoint -load %llvmlibsdir/BugpointPasses.so %s -output-prefix %t -bugpoint-crashcalls -silence-passes > /dev/null define i32 @foo() { ret i32 1 } diff --git a/llvm/test/BugPoint/remove_arguments_test.ll b/llvm/test/BugPoint/remove_arguments_test.ll index 439ea545468e..62a4dd32ac81 100644 --- a/llvm/test/BugPoint/remove_arguments_test.ll +++ b/llvm/test/BugPoint/remove_arguments_test.ll @@ -1,4 +1,5 @@ -; RUN: bugpoint %s -output-prefix %t -bugpoint-crashcalls -silence-passes +; FIXME: This likely fails on windows +; RUN: bugpoint -load %llvmlibsdir/BugpointPasses.so %s -output-prefix %t -bugpoint-crashcalls -silence-passes ; RUN: llvm-dis %t-reduced-simplified.bc -o - | FileCheck %s ; Test to make sure that arguments are removed from the function if they are diff --git a/llvm/tools/Makefile b/llvm/tools/Makefile index 6e23dac111ef..7e5f3aa25fd8 100644 --- a/llvm/tools/Makefile +++ b/llvm/tools/Makefile @@ -20,7 +20,7 @@ PARALLEL_DIRS := opt llvm-as llvm-dis \ llc llvm-ranlib llvm-ar llvm-nm \ llvm-ld llvm-prof llvm-link \ lli llvm-extract llvm-mc \ - bugpoint llvm-bcanalyzer llvm-stub \ + bugpoint bugpoint-passes llvm-bcanalyzer llvm-stub \ llvmc # Let users override the set of tools to build from the command line. diff --git a/llvm/tools/bugpoint/TestPasses.cpp b/llvm/tools/bugpoint-passes/TestPasses.cpp similarity index 100% rename from llvm/tools/bugpoint/TestPasses.cpp rename to llvm/tools/bugpoint-passes/TestPasses.cpp -- GitLab