mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 05:32:25 +00:00
Remove this printer
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14980 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
12e7b11a63
commit
269c80c6ba
@ -19,29 +19,10 @@
|
||||
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Analysis/InstForest.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include <iostream>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
struct InstForestHelper : public FunctionPass {
|
||||
Function *F;
|
||||
virtual bool runOnFunction(Function &Func) { F = &Func; return false; }
|
||||
|
||||
void print(std::ostream &OS) const {
|
||||
std::cout << InstForest<char>(F);
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
|
||||
RegisterAnalysis<InstForestHelper> P1("instforest", "InstForest Printer");
|
||||
}
|
||||
|
||||
namespace {
|
||||
/// ExternalFunctionsPassedConstants - This pass prints out call sites to
|
||||
/// external functions that are called with constant arguments. This can be
|
||||
|
@ -19,29 +19,10 @@
|
||||
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Analysis/InstForest.h"
|
||||
#include "llvm/Support/CallSite.h"
|
||||
#include <iostream>
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
struct InstForestHelper : public FunctionPass {
|
||||
Function *F;
|
||||
virtual bool runOnFunction(Function &Func) { F = &Func; return false; }
|
||||
|
||||
void print(std::ostream &OS) const {
|
||||
std::cout << InstForest<char>(F);
|
||||
}
|
||||
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
}
|
||||
};
|
||||
|
||||
RegisterAnalysis<InstForestHelper> P1("instforest", "InstForest Printer");
|
||||
}
|
||||
|
||||
namespace {
|
||||
/// ExternalFunctionsPassedConstants - This pass prints out call sites to
|
||||
/// external functions that are called with constant arguments. This can be
|
||||
|
Loading…
Reference in New Issue
Block a user