aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-24 00:38:38 +0000
committerChris Lattner <sabre@nondot.org>2005-10-24 00:38:38 +0000
commit6d796238b2f8ac91a12b25bf0444a3f8c0b1f579 (patch)
tree0c5260812d018be3c10910dbe81e4c95b45d7705
parentcd04092fe4328a709ba615ebee0a593ef4546a29 (diff)
downloadexternal_llvm-6d796238b2f8ac91a12b25bf0444a3f8c0b1f579.zip
external_llvm-6d796238b2f8ac91a12b25bf0444a3f8c0b1f579.tar.gz
external_llvm-6d796238b2f8ac91a12b25bf0444a3f8c0b1f579.tar.bz2
implement some prototypes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23920 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/DataStructure/DataStructureStats.cpp5
-rw-r--r--lib/Analysis/DataStructure/GraphChecker.cpp5
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/Analysis/DataStructure/DataStructureStats.cpp b/lib/Analysis/DataStructure/DataStructureStats.cpp
index d86c2a2..4986550 100644
--- a/lib/Analysis/DataStructure/DataStructureStats.cpp
+++ b/lib/Analysis/DataStructure/DataStructureStats.cpp
@@ -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;
diff --git a/lib/Analysis/DataStructure/GraphChecker.cpp b/lib/Analysis/DataStructure/GraphChecker.cpp
index fa083d9..6f2befa 100644
--- a/lib/Analysis/DataStructure/GraphChecker.cpp
+++ b/lib/Analysis/DataStructure/GraphChecker.cpp
@@ -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()) {