summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-09-22 14:34:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-09-22 14:34:57 +0000
commit3c96f0a54e52eace6c8f157c5eea68146bc4932f (patch)
treebaf40b852236ab20cfa16f5f6d818b44e47faf22 /llvm/lib/CodeGen
parentaf368f6e88fd5675e87a2633e467367d56cfe4da (diff)
downloadbcm5719-llvm-3c96f0a54e52eace6c8f157c5eea68146bc4932f.tar.gz
bcm5719-llvm-3c96f0a54e52eace6c8f157c5eea68146bc4932f.zip
Make helper function static. NFC.
llvm-svn: 248278
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/WinEHPrepare.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index 06440e457a8..d5af24ed71a 100644
--- a/llvm/lib/CodeGen/WinEHPrepare.cpp
+++ b/llvm/lib/CodeGen/WinEHPrepare.cpp
@@ -2638,9 +2638,9 @@ static const CatchPadInst *getSingleCatchPadPredecessor(const BasicBlock *BB) {
/// to label %catch.B unwind label %endcatches
/// %endcatches
/// catchendblock unwind to caller
-void findCatchPadsForCatchEndPad(
- const BasicBlock *CatchEndBB,
- SmallVectorImpl<const CatchPadInst *> &Handlers) {
+static void
+findCatchPadsForCatchEndPad(const BasicBlock *CatchEndBB,
+ SmallVectorImpl<const CatchPadInst *> &Handlers) {
const CatchPadInst *CPI = getSingleCatchPadPredecessor(CatchEndBB);
while (CPI) {
Handlers.push_back(CPI);
OpenPOWER on IntegriCloud