summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/lib/Context.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-10-30 15:56:08 +0000
committerFangrui Song <maskray@google.com>2018-10-30 15:56:08 +0000
commit5a8fd65700324a0b2e8cc704ad2302114404a11a (patch)
treee558d06929eebb61dbd903b7ef28bfcadbd46d93 /llvm/tools/llvm-mca/lib/Context.cpp
parent74583444e7309233eff1fb30511158041737e1c9 (diff)
downloadbcm5719-llvm-5a8fd65700324a0b2e8cc704ad2302114404a11a.tar.gz
bcm5719-llvm-5a8fd65700324a0b2e8cc704ad2302114404a11a.zip
[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
Diffstat (limited to 'llvm/tools/llvm-mca/lib/Context.cpp')
-rw-r--r--llvm/tools/llvm-mca/lib/Context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mca/lib/Context.cpp b/llvm/tools/llvm-mca/lib/Context.cpp
index 4e30fc9de31..5b6f52478dd 100644
--- a/llvm/tools/llvm-mca/lib/Context.cpp
+++ b/llvm/tools/llvm-mca/lib/Context.cpp
@@ -24,10 +24,9 @@
#include "Stages/FetchStage.h"
#include "Stages/RetireStage.h"
+namespace llvm {
namespace mca {
-using namespace llvm;
-
std::unique_ptr<Pipeline>
Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB,
SourceMgr &SrcMgr) {
@@ -63,3 +62,4 @@ Context::createDefaultPipeline(const PipelineOptions &Opts, InstrBuilder &IB,
}
} // namespace mca
+} // namespace llvm
OpenPOWER on IntegriCloud