summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-16 15:14:50 +0000
committerDan Gohman <gohman@apple.com>2010-04-16 15:14:50 +0000
commitb3862ecd4821ea9b187859f94dfc3b59af7ac002 (patch)
tree7b918cf0ca6f647037ead1880dd2e1d92f8a9986 /llvm/lib
parent5efc56e36b16e06e4d03fb631433ce10547463e1 (diff)
downloadbcm5719-llvm-b3862ecd4821ea9b187859f94dfc3b59af7ac002.tar.gz
bcm5719-llvm-b3862ecd4821ea9b187859f94dfc3b59af7ac002.zip
Make callIsSmall accessible as a utility function.
llvm-svn: 101463
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/InlineCost.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/InlineCost.cpp b/llvm/lib/Analysis/InlineCost.cpp
index da1238685bc..6650a680f15 100644
--- a/llvm/lib/Analysis/InlineCost.cpp
+++ b/llvm/lib/Analysis/InlineCost.cpp
@@ -108,10 +108,10 @@ unsigned InlineCostAnalyzer::FunctionInfo::
return Reduction;
}
-// callIsSmall - If a call is likely to lower to a single target instruction, or
-// is otherwise deemed small return true.
-// TODO: Perhaps calls like memcpy, strcpy, etc?
-static bool callIsSmall(const Function *F) {
+/// callIsSmall - If a call is likely to lower to a single target instruction,
+/// or is otherwise deemed small return true.
+/// TODO: Perhaps calls like memcpy, strcpy, etc?
+bool llvm::callIsSmall(const Function *F) {
if (!F) return false;
if (F->hasLocalLinkage()) return false;
OpenPOWER on IntegriCloud