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:
Chris Lattner 2005-10-24 00:38:38 +00:00
parent cd04092fe4
commit 6d796238b2
2 changed files with 10 additions and 0 deletions

View File

@ -63,6 +63,11 @@ namespace {
static RegisterAnalysis<DSGraphStats> Z("dsstats", "DS Graph Statistics");
}
FunctionPass *llvm::createDataStructureStatsPass() {
return new DSGraphStats();
}
static bool isIndirectCallee(Value *V) {
if (isa<Function>(V)) return false;

View File

@ -77,6 +77,11 @@ namespace {
RegisterAnalysis<DSGC> X("datastructure-gc", "DSA Graph Checking Pass");
}
FunctionPass *llvm::createDataStructureGraphCheckerPass() {
return new DSGC();
}
DSGC::DSGC() {
if (!AbortIfAnyCollapsed && AbortIfCollapsed.empty() &&
CheckFlags.empty() && AbortIfMerged.empty()) {