summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/LegacyPassManager.cpp
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2016-01-06 18:31:44 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2016-01-06 18:31:44 +0000
commitb243c95c6ab25a84bc01d06f71a8a8b87c6e0b5b (patch)
tree7d93eefb9e55c9a7acfdb1c83cecbb4118071ef0 /llvm/lib/IR/LegacyPassManager.cpp
parent8f59cf756f3903586b7ab549b0ab3c377cffe33d (diff)
downloadbcm5719-llvm-b243c95c6ab25a84bc01d06f71a8a8b87c6e0b5b.tar.gz
bcm5719-llvm-b243c95c6ab25a84bc01d06f71a8a8b87c6e0b5b.zip
Revert r256952 due to lit test fails.
llvm-svn: 256954
Diffstat (limited to 'llvm/lib/IR/LegacyPassManager.cpp')
-rw-r--r--llvm/lib/IR/LegacyPassManager.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/IR/LegacyPassManager.cpp b/llvm/lib/IR/LegacyPassManager.cpp
index 63d89f21b35..f2e0c7d32c0 100644
--- a/llvm/lib/IR/LegacyPassManager.cpp
+++ b/llvm/lib/IR/LegacyPassManager.cpp
@@ -28,7 +28,6 @@
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <map>
-#include <unordered_set>
using namespace llvm;
using namespace llvm::legacy;
@@ -84,13 +83,6 @@ PrintAfterAll("print-after-all",
llvm::cl::desc("Print IR after each pass"),
cl::init(false));
-static cl::list<std::string>
- PrintFuncsList("filter-print-funcs", cl::value_desc("function names"),
- cl::desc("Only print IR for functions whose name "
- "match this for all print-[before|after][-all] "
- "options"),
- cl::CommaSeparated);
-
/// This is a helper to determine whether to print IR before or
/// after a pass.
@@ -117,11 +109,6 @@ static bool ShouldPrintAfterPass(const PassInfo *PI) {
return PrintAfterAll || ShouldPrintBeforeOrAfterPass(PI, PrintAfter);
}
-bool llvm::isFunctionInPrintList(StringRef FunctionName) {
- static std::unordered_set<std::string> PrintFuncNames(PrintFuncsList.begin(),
- PrintFuncsList.end());
- return PrintFuncNames.empty() || PrintFuncNames.count(FunctionName);
-}
/// isPassDebuggingExecutionsOrMore - Return true if -debug-pass=Executions
/// or higher is specified.
bool PMDataManager::isPassDebuggingExecutionsOrMore() const {
OpenPOWER on IntegriCloud