From 5a8fd65700324a0b2e8cc704ad2302114404a11a Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 30 Oct 2018 15:56:08 +0000 Subject: [llvm-mca] Move namespace mca inside llvm:: Summary: This allows to remove `using namespace llvm;` in those *.cpp files When we want to revisit the decision (everything resides in llvm::mca::*) in the future, we can move things to a nested namespace of llvm::mca::, to conceptually make them separate from the rest of llvm::mca::* Reviewers: andreadb, mattd Reviewed By: andreadb Subscribers: javed.absar, tschuett, gbedwell, llvm-commits Differential Revision: https://reviews.llvm.org/D53407 llvm-svn: 345612 --- llvm/tools/llvm-mca/lib/HardwareUnits/Scheduler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/tools/llvm-mca/lib/HardwareUnits/Scheduler.cpp') diff --git a/llvm/tools/llvm-mca/lib/HardwareUnits/Scheduler.cpp b/llvm/tools/llvm-mca/lib/HardwareUnits/Scheduler.cpp index 3d91cb12c2d..b1ac8d99b86 100644 --- a/llvm/tools/llvm-mca/lib/HardwareUnits/Scheduler.cpp +++ b/llvm/tools/llvm-mca/lib/HardwareUnits/Scheduler.cpp @@ -15,10 +15,9 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/raw_ostream.h" +namespace llvm { namespace mca { -using namespace llvm; - #define DEBUG_TYPE "llvm-mca" void Scheduler::initializeStrategy(std::unique_ptr S) { @@ -243,3 +242,4 @@ bool Scheduler::isReady(const InstRef &IR) const { } } // namespace mca +} // namespace llvm -- cgit v1.2.3