mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
0d3133cfc9
This ensures headers make sense on their own, without implicit assumption about includers to also include other headers before them.
23 lines
509 B
C++
23 lines
509 B
C++
#pragma once
|
|
|
|
//
|
|
// This file is distributed under the MIT License. See LICENSE.md for details.
|
|
//
|
|
|
|
#include "llvm/IR/InstrTypes.h"
|
|
#include "llvm/IR/PassManager.h"
|
|
|
|
class IndirectBranchInfoPrinterPass
|
|
: public llvm::PassInfoMixin<IndirectBranchInfoPrinterPass> {
|
|
llvm::raw_ostream &OS;
|
|
|
|
public:
|
|
IndirectBranchInfoPrinterPass(llvm::raw_ostream &OS) : OS(OS){};
|
|
|
|
llvm::PreservedAnalyses
|
|
run(llvm::Function &F, llvm::FunctionAnalysisManager &FAM);
|
|
|
|
private:
|
|
void serialize(llvm::CallBase *Call);
|
|
};
|