summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-24 02:35:24 +0000
committerChris Lattner <sabre@nondot.org>2005-10-24 02:35:24 +0000
commitf753ea7a1573e15670e516f7ce628956d0ea46ac (patch)
treeca10cb2bd6a9b1ed5680dc59b67be0a1c0306ef7 /include/llvm/Analysis
parente941217fb872ff7e3774d6908552ef0924a209e2 (diff)
downloadllvm-f753ea7a1573e15670e516f7ce628956d0ea46ac.tar.gz
llvm-f753ea7a1573e15670e516f7ce628956d0ea46ac.tar.bz2
llvm-f753ea7a1573e15670e516f7ce628956d0ea46ac.tar.xz
This pass is very old and quite useless, remove it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/FindUnsafePointerTypes.h62
-rw-r--r--include/llvm/Analysis/LinkAllAnalyses.h2
2 files changed, 0 insertions, 64 deletions
diff --git a/include/llvm/Analysis/FindUnsafePointerTypes.h b/include/llvm/Analysis/FindUnsafePointerTypes.h
deleted file mode 100644
index d1f2709325..0000000000
--- a/include/llvm/Analysis/FindUnsafePointerTypes.h
+++ /dev/null
@@ -1,62 +0,0 @@
-//===- llvm/Analysis/FindUnsafePointerTypes.h - Unsafe pointers -*- 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 file defines a pass that can be used to determine, interprocedurally,
-// which pointer types are accessed unsafely in a program. If there is an
-// "unsafe" access to a specific pointer type, transformations that depend on
-// type safety cannot be permitted.
-//
-// The result of running this analysis over a program is a set of unsafe pointer
-// types that cannot be transformed. Safe pointer types are not tracked.
-//
-// Additionally, this analysis exports a hidden command line argument that (when
-// enabled) prints out the reasons a type was determined to be unsafe. Just add
-// -printunsafeptrinst to the command line of the tool you want to get it.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_ANALYSIS_UNSAFEPOINTERTYPES_H
-#define LLVM_ANALYSIS_UNSAFEPOINTERTYPES_H
-
-#include "llvm/Pass.h"
-#include <set>
-
-namespace llvm {
-
-class PointerType;
-
-struct FindUnsafePointerTypes : public ModulePass {
- // UnsafeTypes - Set of types that are not safe to transform.
- std::set<PointerType*> UnsafeTypes;
-public:
- // Accessor for underlying type set...
- inline const std::set<PointerType*> &getUnsafeTypes() const {
- return UnsafeTypes;
- }
-
- /// run - Inspect the operations that the specified module does on
- /// values of various types. If they are deemed to be 'unsafe' note that the
- /// type is not safe to transform.
- ///
- virtual bool runOnModule(Module &M);
-
- /// print - Loop over the results of the analysis, printing out unsafe types.
- ///
- void print(std::ostream &o, const Module *Mod) const;
-
- /// getAnalysisUsage - Of course, we provide ourself...
- ///
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
- }
-};
-
-} // End llvm namespace
-
-#endif
diff --git a/include/llvm/Analysis/LinkAllAnalyses.h b/include/llvm/Analysis/LinkAllAnalyses.h
index 36c8938ff9..6188c27001 100644
--- a/include/llvm/Analysis/LinkAllAnalyses.h
+++ b/include/llvm/Analysis/LinkAllAnalyses.h
@@ -17,7 +17,6 @@
#include "llvm/Analysis/AliasSetTracker.h"
#include "llvm/Analysis/CallGraph.h"
-#include "llvm/Analysis/FindUnsafePointerTypes.h"
#include "llvm/Analysis/FindUsedTypes.h"
#include "llvm/Analysis/IntervalPartition.h"
#include "llvm/Analysis/PostDominators.h"
@@ -52,7 +51,6 @@ namespace {
(void)new llvm::PostDominatorSet();
(void)new llvm::CallGraph();
(void)new llvm::FindUsedTypes();
- (void)new llvm::FindUnsafePointerTypes();
(void)new llvm::ScalarEvolution();
((llvm::Function*)0)->viewCFGOnly();
llvm::AliasSetTracker X(*(llvm::AliasAnalysis*)0);