summaryrefslogtreecommitdiff
path: root/lib/Analysis/InlineCost.cpp
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
commit52d55bd224ac08dfef959527ca8257f82a80dbb0 (patch)
tree995c3e7f7c0a2df80d0bacd7a851451bb799fe2c /lib/Analysis/InlineCost.cpp
parenta5145c8d5ad6433cd490ce2e19584256b380d6b3 (diff)
downloadllvm-52d55bd224ac08dfef959527ca8257f82a80dbb0.tar.gz
llvm-52d55bd224ac08dfef959527ca8257f82a80dbb0.tar.bz2
llvm-52d55bd224ac08dfef959527ca8257f82a80dbb0.tar.xz
Make callIsSmall accessible as a utility function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InlineCost.cpp')
-rw-r--r--lib/Analysis/InlineCost.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/InlineCost.cpp b/lib/Analysis/InlineCost.cpp
index da1238685b..6650a680f1 100644
--- a/lib/Analysis/InlineCost.cpp
+++ b/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;