mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 21:05:23 +00:00
[Debugify] Move interface definitions to a header, NFC
This is a minor cleanup in preparation for a change to export DI statistics from -check-debugify. To do that, it would be cleaner to have a dedicated header for the debugify interface. llvm-svn: 337786
This commit is contained in:
parent
2b5dd39386
commit
069adf4d6b
@ -12,7 +12,7 @@
|
||||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "PassPrinters.h"
|
||||
#include "Debugify.h"
|
||||
#include "llvm/ADT/BitVector.h"
|
||||
#include "llvm/ADT/StringExtras.h"
|
||||
#include "llvm/IR/BasicBlock.h"
|
||||
|
39
tools/opt/Debugify.h
Normal file
39
tools/opt/Debugify.h
Normal file
@ -0,0 +1,39 @@
|
||||
//===- Debugify.h - Attach synthetic debug info to everything -------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
// This file is distributed under the University of Illinois Open Source
|
||||
// License. See LICENSE.TXT for details.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
///
|
||||
/// \file Interface to the `debugify` synthetic debug info testing utility.
|
||||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_TOOLS_OPT_DEBUGIFY_H
|
||||
#define LLVM_TOOLS_OPT_DEBUGIFY_H
|
||||
|
||||
#include "llvm/IR/PassManager.h"
|
||||
|
||||
llvm::ModulePass *createDebugifyModulePass();
|
||||
llvm::FunctionPass *createDebugifyFunctionPass();
|
||||
|
||||
struct NewPMDebugifyPass : public llvm::PassInfoMixin<NewPMDebugifyPass> {
|
||||
llvm::PreservedAnalyses run(llvm::Module &M, llvm::ModuleAnalysisManager &AM);
|
||||
};
|
||||
|
||||
llvm::ModulePass *
|
||||
createCheckDebugifyModulePass(bool Strip = false,
|
||||
llvm::StringRef NameOfWrappedPass = "");
|
||||
|
||||
llvm::FunctionPass *
|
||||
createCheckDebugifyFunctionPass(bool Strip = false,
|
||||
llvm::StringRef NameOfWrappedPass = "");
|
||||
|
||||
struct NewPMCheckDebugifyPass
|
||||
: public llvm::PassInfoMixin<NewPMCheckDebugifyPass> {
|
||||
llvm::PreservedAnalyses run(llvm::Module &M, llvm::ModuleAnalysisManager &AM);
|
||||
};
|
||||
|
||||
#endif // LLVM_TOOLS_OPT_DEBUGIFY_H
|
@ -13,6 +13,7 @@
|
||||
///
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "Debugify.h"
|
||||
#include "NewPMDriver.h"
|
||||
#include "PassPrinters.h"
|
||||
#include "llvm/ADT/StringRef.h"
|
||||
|
@ -49,24 +49,4 @@ BasicBlockPass *createBasicBlockPassPrinter(const PassInfo *PI,
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
llvm::ModulePass *createDebugifyModulePass();
|
||||
llvm::FunctionPass *createDebugifyFunctionPass();
|
||||
|
||||
struct NewPMDebugifyPass : public llvm::PassInfoMixin<NewPMDebugifyPass> {
|
||||
llvm::PreservedAnalyses run(llvm::Module &M, llvm::ModuleAnalysisManager &AM);
|
||||
};
|
||||
|
||||
llvm::ModulePass *
|
||||
createCheckDebugifyModulePass(bool Strip = false,
|
||||
llvm::StringRef NameOfWrappedPass = "");
|
||||
|
||||
llvm::FunctionPass *
|
||||
createCheckDebugifyFunctionPass(bool Strip = false,
|
||||
llvm::StringRef NameOfWrappedPass = "");
|
||||
|
||||
struct NewPMCheckDebugifyPass
|
||||
: public llvm::PassInfoMixin<NewPMCheckDebugifyPass> {
|
||||
llvm::PreservedAnalyses run(llvm::Module &M, llvm::ModuleAnalysisManager &AM);
|
||||
};
|
||||
|
||||
#endif // LLVM_TOOLS_OPT_PASSPRINTERS_H
|
||||
|
@ -13,6 +13,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "BreakpointPrinter.h"
|
||||
#include "Debugify.h"
|
||||
#include "NewPMDriver.h"
|
||||
#include "PassPrinters.h"
|
||||
#include "llvm/ADT/Triple.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user