move header
authorAndrew Lenharth <andrewl@lenharth.org>
Fri, 16 Jun 2006 14:33:53 +0000 (14:33 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Fri, 16 Jun 2006 14:33:53 +0000 (14:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28818 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/CallTargets.h [deleted file]
include/llvm/Analysis/DataStructure/CallTargets.h [new file with mode: 0644]
include/llvm/Analysis/LinkAllAnalyses.h
lib/Analysis/DataStructure/CallTargets.cpp

diff --git a/include/llvm/Analysis/CallTargets.h b/include/llvm/Analysis/CallTargets.h
deleted file mode 100644 (file)
index d4f56e8..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-//=- llvm/Analysis/CallTargets.h - Resolve Indirect Call Targets --*- C++ -*-=//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This pass uses DSA to map targets of all calls, and reports on if it
-// thinks it knows all targets of a given call.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_ANALYSIS_CALLTARGETS_H
-#define LLVM_ANALYSIS_CALLTARGETS_H
-
-#include "llvm/Pass.h"
-#include "llvm/Support/CallSite.h"
-
-#include <set>
-#include <list>
-
-namespace llvm {
-
-  class CallTargetFinder : public ModulePass {
-    std::map<CallSite, std::vector<Function*> > IndMap;
-    std::set<CallSite> CompleteSites;
-    std::list<CallSite> AllSites;
-
-    void findIndTargets(Module &M);
-  public:
-    virtual bool runOnModule(Module &M);
-
-    virtual void getAnalysisUsage(AnalysisUsage &AU) const;
-
-    virtual void print(std::ostream &O, const Module *M) const;
-
-    // Given a CallSite, get an iterator of callees
-    std::vector<Function*>::iterator begin(CallSite cs);
-    std::vector<Function*>::iterator end(CallSite cs);
-
-    // Iterate over CallSites in program
-    std::list<CallSite>::iterator cs_begin();
-    std::list<CallSite>::iterator cs_end();
-
-    // Do we think we have complete knowledge of this site?
-    // That is, do we think there are no missing callees
-    bool isComplete(CallSite cs) const;
-  };
-  
-}
-
-#endif
diff --git a/include/llvm/Analysis/DataStructure/CallTargets.h b/include/llvm/Analysis/DataStructure/CallTargets.h
new file mode 100644 (file)
index 0000000..d4f56e8
--- /dev/null
@@ -0,0 +1,54 @@
+//=- llvm/Analysis/CallTargets.h - Resolve Indirect Call Targets --*- C++ -*-=//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This pass uses DSA to map targets of all calls, and reports on if it
+// thinks it knows all targets of a given call.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_ANALYSIS_CALLTARGETS_H
+#define LLVM_ANALYSIS_CALLTARGETS_H
+
+#include "llvm/Pass.h"
+#include "llvm/Support/CallSite.h"
+
+#include <set>
+#include <list>
+
+namespace llvm {
+
+  class CallTargetFinder : public ModulePass {
+    std::map<CallSite, std::vector<Function*> > IndMap;
+    std::set<CallSite> CompleteSites;
+    std::list<CallSite> AllSites;
+
+    void findIndTargets(Module &M);
+  public:
+    virtual bool runOnModule(Module &M);
+
+    virtual void getAnalysisUsage(AnalysisUsage &AU) const;
+
+    virtual void print(std::ostream &O, const Module *M) const;
+
+    // Given a CallSite, get an iterator of callees
+    std::vector<Function*>::iterator begin(CallSite cs);
+    std::vector<Function*>::iterator end(CallSite cs);
+
+    // Iterate over CallSites in program
+    std::list<CallSite>::iterator cs_begin();
+    std::list<CallSite>::iterator cs_end();
+
+    // Do we think we have complete knowledge of this site?
+    // That is, do we think there are no missing callees
+    bool isComplete(CallSite cs) const;
+  };
+  
+}
+
+#endif
index 0be53648fbd949a9e5f5df9c5471b5366344bc36..5914d62fa2f65446c8197bd9e64a7207ff4ef48f 100644 (file)
@@ -22,7 +22,7 @@
 #include "llvm/Analysis/Passes.h"
 #include "llvm/Analysis/ScalarEvolution.h"
 #include "llvm/Analysis/DataStructure/DataStructure.h"
-#include "llvm/Analysis/CallTargets.h"
+#include "llvm/Analysis/DataStructure/CallTargets.h"
 #include "llvm/Function.h"
 #include <cstdlib>
 
index 10fe26e7063c074d3c000914f9421811ed521341..30d7d48334df96e304d02f758efad5a268617d3a 100644 (file)
@@ -21,7 +21,7 @@
 #include "llvm/Instructions.h"
 #include "llvm/Analysis/DataStructure/DataStructure.h"
 #include "llvm/Analysis/DataStructure/DSGraph.h"
-#include "llvm/Analysis/CallTargets.h"
+#include "llvm/Analysis/DataStructure/CallTargets.h"
 #include "llvm/ADT/Statistic.h"
 #include <iostream>
 #include "llvm/Constants.h"