diff options
author | Andrew Trick <atrick@apple.com> | 2011-08-27 06:10:16 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-08-27 06:10:16 +0000 |
commit | 8592a0cda4cf4ae76c5a29230fb330d0e952bb62 (patch) | |
tree | d1d15fcb0e76e11c282404e0a2708f1052243af9 /include/llvm | |
parent | 884fb72f155b2ca0c26de7d12ec12f4778932831 (diff) | |
download | external_llvm-8592a0cda4cf4ae76c5a29230fb330d0e952bb62.zip external_llvm-8592a0cda4cf4ae76c5a29230fb330d0e952bb62.tar.gz external_llvm-8592a0cda4cf4ae76c5a29230fb330d0e952bb62.tar.bz2 |
Reverting r138695 to see if it fixes clang self host.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/LoopPass.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/RegionPass.h | 2 | ||||
-rw-r--r-- | include/llvm/LinkAllPasses.h | 2 | ||||
-rw-r--r-- | include/llvm/PassManagers.h | 7 |
4 files changed, 6 insertions, 7 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index e6ed9bc..1603d2e 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -84,7 +84,7 @@ public: class LPPassManager : public FunctionPass, public PMDataManager { public: static char ID; - explicit LPPassManager(); + explicit LPPassManager(int Depth); /// run - Execute all of the passes scheduled for execution. Keep track of /// whether any of the passes modifies the module, and if so, return true. diff --git a/include/llvm/Analysis/RegionPass.h b/include/llvm/Analysis/RegionPass.h index 68f1201..1a93859 100644 --- a/include/llvm/Analysis/RegionPass.h +++ b/include/llvm/Analysis/RegionPass.h @@ -88,7 +88,7 @@ class RGPassManager : public FunctionPass, public PMDataManager { public: static char ID; - explicit RGPassManager(); + explicit RGPassManager(int Depth); /// @brief Execute all of the passes scheduled for execution. /// diff --git a/include/llvm/LinkAllPasses.h b/include/llvm/LinkAllPasses.h index e427f40..058bd63 100644 --- a/include/llvm/LinkAllPasses.h +++ b/include/llvm/LinkAllPasses.h @@ -156,7 +156,7 @@ namespace { (void)new llvm::FindUsedTypes(); (void)new llvm::ScalarEvolution(); ((llvm::Function*)0)->viewCFGOnly(); - llvm::RGPassManager RGM; + llvm::RGPassManager RGM(0); ((llvm::RegionPass*)0)->runOnRegion((llvm::Region*)0, RGM); llvm::AliasSetTracker X(*(llvm::AliasAnalysis*)0); X.add((llvm::Value*)0, 0, 0); // for -print-alias-sets diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index c05347d..c4f409e 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -263,7 +263,7 @@ private: class PMDataManager { public: - explicit PMDataManager() : TPM(NULL), Depth(0) { + explicit PMDataManager(int Depth) : TPM(NULL), Depth(Depth) { initializeAnalysisInfo(); } @@ -333,7 +333,6 @@ public: void setTopLevelManager(PMTopLevelManager *T) { TPM = T; } unsigned getDepth() const { return Depth; } - void setDepth(unsigned newDepth) { Depth = newDepth; } // Print routines used by debug-pass void dumpLastUses(Pass *P, unsigned Offset) const; @@ -409,8 +408,8 @@ private: class FPPassManager : public ModulePass, public PMDataManager { public: static char ID; - explicit FPPassManager() - : ModulePass(ID), PMDataManager() { } + explicit FPPassManager(int Depth) + : ModulePass(ID), PMDataManager(Depth) { } /// run - Execute all of the passes scheduled for execution. Keep track of /// whether any of the passes modifies the module, and if so, return true. |