summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commit557169d923e6155feafc984bbea05abb04e8129e (patch)
tree9261d65ee4739b858aa87c83d41b506a2a19911b /llvm/include
parent76d864c7e756008490d11473773ea04a48186626 (diff)
downloadbcm5719-llvm-557169d923e6155feafc984bbea05abb04e8129e.tar.gz
bcm5719-llvm-557169d923e6155feafc984bbea05abb04e8129e.zip
Implement and use new method Function::hasAddressTaken().
llvm-svn: 73164
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Function.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Function.h b/llvm/include/llvm/Function.h
index ccc006cfcfb..228ef9440e0 100644
--- a/llvm/include/llvm/Function.h
+++ b/llvm/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 *
OpenPOWER on IntegriCloud