diff options
author | Fangrui Song <maskray@google.com> | 2018-10-30 15:56:08 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-10-30 15:56:08 +0000 |
commit | 5a8fd65700324a0b2e8cc704ad2302114404a11a (patch) | |
tree | e558d06929eebb61dbd903b7ef28bfcadbd46d93 /llvm/tools/llvm-mca/include/Context.h | |
parent | 74583444e7309233eff1fb30511158041737e1c9 (diff) | |
download | bcm5719-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/include/Context.h')
-rw-r--r-- | llvm/tools/llvm-mca/include/Context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mca/include/Context.h b/llvm/tools/llvm-mca/include/Context.h index 9d64ae32f1c..d383e2361be 100644 --- a/llvm/tools/llvm-mca/include/Context.h +++ b/llvm/tools/llvm-mca/include/Context.h @@ -25,6 +25,7 @@ #include "llvm/MC/MCSubtargetInfo.h" #include <memory> +namespace llvm { namespace mca { /// This is a convenience struct to hold the parameters necessary for creating @@ -64,4 +65,5 @@ public: }; } // namespace mca +} // namespace llvm #endif // LLVM_TOOLS_LLVM_MCA_CONTEXT_H |