[llvm] r334890 - Fix namespaces. No functionality change.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 16 06:37:52 PDT 2018
Author: d0k
Date: Sat Jun 16 06:37:52 2018
New Revision: 334890
URL: http://llvm.org/viewvc/llvm-project?rev=334890&view=rev
Log:
Fix namespaces. No functionality change.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineOutliner.h
llvm/trunk/lib/Analysis/TargetTransformInfo.cpp
llvm/trunk/lib/Support/Unix/Signals.inc
Modified: llvm/trunk/include/llvm/CodeGen/MachineOutliner.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineOutliner.h?rev=334890&r1=334889&r2=334890&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineOutliner.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineOutliner.h Sat Jun 16 06:37:52 2018
@@ -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
Modified: llvm/trunk/lib/Analysis/TargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/TargetTransformInfo.cpp?rev=334890&r1=334889&r2=334890&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/TargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/TargetTransformInfo.cpp Sat Jun 16 06:37:52 2018
@@ -771,7 +771,7 @@ static bool isTransposeVectorMask(ArrayR
return true;
}
-TargetTransformInfo::OperandValueKind
+static TargetTransformInfo::OperandValueKind
getOperandInfo(Value *V, TargetTransformInfo::OperandValueProperties &OpProps) {
TargetTransformInfo::OperandValueKind OpInfo =
TargetTransformInfo::OK_AnyValue;
Modified: llvm/trunk/lib/Support/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Signals.inc?rev=334890&r1=334889&r2=334890&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Signals.inc (original)
+++ llvm/trunk/lib/Support/Unix/Signals.inc Sat Jun 16 06:37:52 2018
@@ -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;
More information about the llvm-commits
mailing list