mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-12 06:06:32 +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");
|
||||
}
|
||||
|
||||
FunctionPass *llvm::createDataStructureStatsPass() {
|
||||
return new DSGraphStats();
|
||||
}
|
||||
|
||||
|
||||
static bool isIndirectCallee(Value *V) {
|
||||
if (isa<Function>(V)) return false;
|
||||
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user