mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-20 09:24:58 +00:00
implement some prototypes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd04092fe4
commit
6d796238b2
@ -63,6 +63,11 @@ namespace {
|
|||||||
static RegisterAnalysis<DSGraphStats> Z("dsstats", "DS Graph Statistics");
|
static RegisterAnalysis<DSGraphStats> Z("dsstats", "DS Graph Statistics");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FunctionPass *llvm::createDataStructureStatsPass() {
|
||||||
|
return new DSGraphStats();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static bool isIndirectCallee(Value *V) {
|
static bool isIndirectCallee(Value *V) {
|
||||||
if (isa<Function>(V)) return false;
|
if (isa<Function>(V)) return false;
|
||||||
|
|
||||||
|
@ -77,6 +77,11 @@ namespace {
|
|||||||
RegisterAnalysis<DSGC> X("datastructure-gc", "DSA Graph Checking Pass");
|
RegisterAnalysis<DSGC> X("datastructure-gc", "DSA Graph Checking Pass");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FunctionPass *llvm::createDataStructureGraphCheckerPass() {
|
||||||
|
return new DSGC();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
DSGC::DSGC() {
|
DSGC::DSGC() {
|
||||||
if (!AbortIfAnyCollapsed && AbortIfCollapsed.empty() &&
|
if (!AbortIfAnyCollapsed && AbortIfCollapsed.empty() &&
|
||||||
CheckFlags.empty() && AbortIfMerged.empty()) {
|
CheckFlags.empty() && AbortIfMerged.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user