summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-11-24 14:55:41 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-11-24 14:55:41 +0000
commit51ebcaaf258ee206c6e7179a6803ef4e13e32a2e (patch)
treeaf8e8561b1d1c720d55fd48ed46f9572b68f094e /llvm/lib/CodeGen
parent72bac8f33716a8f38fab7acca4145d9c989d14d0 (diff)
downloadbcm5719-llvm-51ebcaaf258ee206c6e7179a6803ef4e13e32a2e.tar.gz
bcm5719-llvm-51ebcaaf258ee206c6e7179a6803ef4e13e32a2e.zip
Make helpers static. NFC.
llvm-svn: 318953
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MIRCanonicalizerPass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
index 62596440c73..c1ccb94441a 100644
--- a/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
+++ b/llvm/lib/CodeGen/MIRCanonicalizerPass.cpp
@@ -261,10 +261,10 @@ static std::vector<MachineInstr *> populateCandidates(MachineBasicBlock *MBB) {
return Candidates;
}
-void doCandidateWalk(std::vector<TypedVReg> &VRegs,
- std::queue <TypedVReg> &RegQueue,
- std::vector<MachineInstr *> &VisitedMIs,
- const MachineBasicBlock *MBB) {
+static void doCandidateWalk(std::vector<TypedVReg> &VRegs,
+ std::queue<TypedVReg> &RegQueue,
+ std::vector<MachineInstr *> &VisitedMIs,
+ const MachineBasicBlock *MBB) {
const MachineFunction &MF = *MBB->getParent();
const MachineRegisterInfo &MRI = MF.getRegInfo();
OpenPOWER on IntegriCloud