diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-02-11 15:16:21 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-02-11 15:16:21 +0000 |
commit | 711950c1161e3abbf722e6399aff9b42c1f99750 (patch) | |
tree | 8917e53b17c5013ce4651c9ed941cd6bbec0409c /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | |
parent | eac19858e92fe977384db9a9bbc4c0968a7ec51f (diff) | |
download | bcm5719-llvm-711950c1161e3abbf722e6399aff9b42c1f99750.tar.gz bcm5719-llvm-711950c1161e3abbf722e6399aff9b42c1f99750.zip |
Move some classes into anonymous namespaces. NFC.
llvm-svn: 353710
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index d242d3c159a..ee0d7fdd056 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -19404,10 +19404,12 @@ SDValue DAGCombiner::FindBetterChain(LSBaseSDNode *N, SDValue OldChain) { return DAG.getNode(ISD::TokenFactor, SDLoc(N), MVT::Other, Aliases); } +namespace { // TODO: Replace with with std::monostate when we move to C++17. struct UnitT { } Unit; bool operator==(const UnitT &, const UnitT &) { return true; } bool operator!=(const UnitT &, const UnitT &) { return false; } +} // namespace // This function tries to collect a bunch of potentially interesting // nodes to improve the chains of, all at once. This might seem |