summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-10-08 22:12:48 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-10-08 22:12:48 +0000
commitc92b8aa79f4a2cd16f7b674189e425c2c367e886 (patch)
treeaaa2cbd2342ad1e9f67b04a26d5d1122f12a36d4 /lib/Transforms/IPO
parent6be75ae196e0138048f685d4df7128d24245be5e (diff)
Give CaptureTracker::shouldExplore a base implementation. Most users want to do
the same thing. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp
index f974bd0c045..0e16589ecec 100644
--- a/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -276,8 +276,6 @@ namespace {
void tooManyUses() { Captured = true; }
- bool shouldExplore(Use *U) { return true; }
-
bool captured(Use *U) {
CallSite CS(U->getUser());
if (!CS.getInstruction()) { Captured = true; return true; }