summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2018-10-13 22:18:22 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2018-10-13 22:18:22 +0000
commitc55e9975566ca2491d377a33f1ac497ef12571a3 (patch)
tree1474ecce883dbfa88a45d8d0bc6bfa75bd8fa3c5 /llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
parent7899ccbcca9dd69ad21231a047c1e6130528937e (diff)
downloadbcm5719-llvm-c55e9975566ca2491d377a33f1ac497ef12571a3.tar.gz
bcm5719-llvm-c55e9975566ca2491d377a33f1ac497ef12571a3.zip
Move some helpers from the global namespace into anonymous ones.
llvm-svn: 344468
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
index 936b801a9a0..98953f09482 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
@@ -59,7 +59,7 @@ FunctionPass *llvm::createWebAssemblyLateEHPrepare() {
// possible search paths should be the same.
// Returns nullptr in case it does not find any EH pad in the search, or finds
// multiple different EH pads.
-MachineBasicBlock *GetMatchingEHPad(MachineInstr *MI) {
+static MachineBasicBlock *GetMatchingEHPad(MachineInstr *MI) {
MachineFunction *MF = MI->getParent()->getParent();
SmallVector<MachineBasicBlock *, 2> WL;
SmallPtrSet<MachineBasicBlock *, 2> Visited;
OpenPOWER on IntegriCloud