summaryrefslogtreecommitdiff
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2009-06-10 08:41:11 +0000
committerJay Foad <jay.foad@gmail.com>2009-06-10 08:41:11 +0000
commit757068f3bad425fb126fe16ab7b8a82a636e6bbd (patch)
tree16aac7d61fc8b5409af46cc2b5cc3245e3fd9ad3 /include/llvm/Function.h
parentcb597c9cc457ee0bb9c6ab3195b90da6d0049caf (diff)
downloadllvm-757068f3bad425fb126fe16ab7b8a82a636e6bbd.tar.gz
llvm-757068f3bad425fb126fe16ab7b8a82a636e6bbd.tar.bz2
llvm-757068f3bad425fb126fe16ab7b8a82a636e6bbd.tar.xz
Implement and use new method Function::hasAddressTaken().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index ccc006cfcf..228ef9440e 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -395,6 +395,10 @@ public:
/// including any contained basic blocks.
///
void dropAllReferences();
+
+ /// hasAddressTaken - returns true if there are any uses of this function
+ /// other than direct calls or invokes to it.
+ bool hasAddressTaken() const;
};
inline ValueSymbolTable *