diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-08-20 13:03:48 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-08-20 13:03:48 +0000 |
| commit | 49a49fe816122f9bc4cf8f909e0bc24aa84ea4ce (patch) | |
| tree | f67fcbe4d22d0268902ea501339f083eab383c62 /llvm/lib/CodeGen/SelectionDAG | |
| parent | df8c2628ac6778024d6b99484bb94fd77e466d0e (diff) | |
| download | bcm5719-llvm-49a49fe816122f9bc4cf8f909e0bc24aa84ea4ce.tar.gz bcm5719-llvm-49a49fe816122f9bc4cf8f909e0bc24aa84ea4ce.zip | |
Move helper classes into anonymous namespaces.
No functionality change intended.
llvm-svn: 311288
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 083167ca62f..fc441b8d857 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -7015,6 +7015,7 @@ static bool createVirtualRegs(SmallVector<unsigned, 4> &Regs, unsigned NumRegs, return true; } +namespace { class ExtraFlags { unsigned Flags = 0; @@ -7048,6 +7049,7 @@ public: unsigned get() const { return Flags; } }; +} // namespace /// visitInlineAsm - Handle a call to an InlineAsm object. /// diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 0ac92b5efa2..4d43a3b41f8 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -1287,10 +1287,10 @@ static void propagateSwiftErrorVRegs(FunctionLoweringInfo *FuncInfo) { } } -void preassignSwiftErrorRegs(const TargetLowering *TLI, - FunctionLoweringInfo *FuncInfo, - BasicBlock::const_iterator Begin, - BasicBlock::const_iterator End) { +static void preassignSwiftErrorRegs(const TargetLowering *TLI, + FunctionLoweringInfo *FuncInfo, + BasicBlock::const_iterator Begin, + BasicBlock::const_iterator End) { if (!TLI->supportSwiftError() || FuncInfo->SwiftErrorVals.empty()) return; |

