summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-23 12:30:58 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-23 12:30:58 +0000
commit51f6096cf80a3a02d20d5f109188088e489d73e4 (patch)
treeef1df475f137b7d1f85e6cead828c3e7e9bfe6b6 /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent5b4362276b1f38d6a7dd1c67cc5c8cc45e25960b (diff)
downloadbcm5719-llvm-51f6096cf80a3a02d20d5f109188088e489d73e4.tar.gz
bcm5719-llvm-51f6096cf80a3a02d20d5f109188088e489d73e4.zip
Move private classes into anonymous namespaces
NFC. llvm-svn: 232944
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 702147155ba..35554796416 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -9984,6 +9984,7 @@ SDValue DAGCombiner::TransformFPLoadStorePair(SDNode *N) {
return SDValue();
}
+namespace {
/// Helper struct to parse and store a memory address as base + index + offset.
/// We ignore sign extensions when it is safe to do so.
/// The following two expressions are not equivalent. To differentiate we need
@@ -10071,6 +10072,7 @@ struct BaseIndexOffset {
return BaseIndexOffset(Base, Index, Off, IsIndexSignExt);
}
};
+} // namespace
bool DAGCombiner::MergeStoresOfConstantsOrVecElts(
SmallVectorImpl<MemOpLink> &StoreNodes, EVT MemVT,
OpenPOWER on IntegriCloud