//===- TestPasses.cpp - "buggy" passes used to test bugpoint --------------===//
//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file contains "buggy" passes that are used to test bugpoint, to check
// that it is narrowing down testcases correctly.
//
//===----------------------------------------------------------------------===//
using namespace llvm::PatternMatch;
using namespace llvm;
char CrashOnCalls::ID = 0;
static RegisterPass<CrashOnCalls>
;
char DeleteCalls::ID = 0;
static RegisterPass<DeleteCalls>
;
char CrashOnDeclFunc::ID = 0;
static RegisterPass<CrashOnDeclFunc>
;
char CrashOnTooManyCUs::ID = 0;
static RegisterPass<CrashOnTooManyCUs>
;
// namespace
char CrashOnFunctionAttribute::ID = 0;
static RegisterPass<CrashOnFunctionAttribute>
;
// namespace
char CrashOnMetadata::ID = 0;
static RegisterPass<CrashOnMetadata>
;