diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2018-06-16 13:37:52 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2018-06-16 13:37:52 +0000 |
| commit | 1193bbf6b76b333069209f4f9224cb1f433f23ef (patch) | |
| tree | 139968cadf80bde4d95c3dc1d996aca5a3fad2dd /llvm | |
| parent | 0939fea8b4614efaf61cc3e59596d72fabfaf790 (diff) | |
| download | bcm5719-llvm-1193bbf6b76b333069209f4f9224cb1f433f23ef.tar.gz bcm5719-llvm-1193bbf6b76b333069209f4f9224cb1f433f23ef.zip | |
Fix namespaces. No functionality change.
llvm-svn: 334890
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineOutliner.h | 4 | ||||
| -rw-r--r-- | llvm/lib/Analysis/TargetTransformInfo.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Support/Unix/Signals.inc | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineOutliner.h b/llvm/include/llvm/CodeGen/MachineOutliner.h index 573c1f5b825..6b7efe2ec6c 100644 --- a/llvm/include/llvm/CodeGen/MachineOutliner.h +++ b/llvm/include/llvm/CodeGen/MachineOutliner.h @@ -18,10 +18,9 @@ #include "llvm/CodeGen/MachineFunction.h" +namespace llvm { namespace outliner { -using namespace llvm; - /// Represents how an instruction should be mapped by the outliner. /// \p Legal instructions are those which are safe to outline. /// \p LegalTerminator instructions are safe to outline, but only as the @@ -190,5 +189,6 @@ public: TCI(TCI) {} }; } // namespace outliner +} // namespace llvm #endif diff --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp index 69da0de200b..fea6db458c7 100644 --- a/llvm/lib/Analysis/TargetTransformInfo.cpp +++ b/llvm/lib/Analysis/TargetTransformInfo.cpp @@ -771,7 +771,7 @@ static bool isTransposeVectorMask(ArrayRef<int> Mask) { return true; } -TargetTransformInfo::OperandValueKind +static TargetTransformInfo::OperandValueKind getOperandInfo(Value *V, TargetTransformInfo::OperandValueProperties &OpProps) { TargetTransformInfo::OperandValueKind OpInfo = TargetTransformInfo::OK_AnyValue; diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc index f4e99266459..de26695d64e 100644 --- a/llvm/lib/Support/Unix/Signals.inc +++ b/llvm/lib/Support/Unix/Signals.inc @@ -86,6 +86,7 @@ using InterruptFunctionType = void (*)(); static std::atomic<InterruptFunctionType> InterruptFunction = ATOMIC_VAR_INIT(nullptr); +namespace { /// Signal-safe removal of files. /// Inserting and erasing from the list isn't signal-safe, but removal of files /// themselves is signal-safe. Memory is freed when the head is freed, deletion @@ -194,6 +195,7 @@ struct FilesToRemoveCleanup { delete Head; } }; +} // namespace static StringRef Argv0; |

