summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86CondBrFolding.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/X86/X86CondBrFolding.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/X86/X86CondBrFolding.cpp')
-rw-r--r--llvm/lib/Target/X86/X86CondBrFolding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86CondBrFolding.cpp b/llvm/lib/Target/X86/X86CondBrFolding.cpp
index 8b9ef20d916..1d221930c2a 100644
--- a/llvm/lib/Target/X86/X86CondBrFolding.cpp
+++ b/llvm/lib/Target/X86/X86CondBrFolding.cpp
@@ -84,6 +84,7 @@ FunctionPass *llvm::createX86CondBrFolding() {
return new X86CondBrFoldingPass();
}
+namespace {
// A class the stores the auxiliary information for each MBB.
struct TargetMBBInfo {
MachineBasicBlock *TBB;
@@ -129,6 +130,7 @@ private:
return MBBInfos[MBB->getNumber()].get();
}
};
+} // namespace
// Find a valid path that we can reuse the CondCode.
// The resulted path (if return true) is stored in BranchPath.
OpenPOWER on IntegriCloud