From 076eba20bc1d8e01ca178eb90b29a27ad09f64b9 Mon Sep 17 00:00:00 2001 From: Andrea Di Biagio Date: Wed, 16 May 2018 13:38:17 +0000 Subject: [PATCH] [llvm-mca] Move definitions in FetchStage.cpp inside namespace mca. NFC Also, get rid of a redundant include in FetchStage.h and FetchStage.cpp. llvm-svn: 332468 --- llvm/tools/llvm-mca/FetchStage.cpp | 5 +++-- llvm/tools/llvm-mca/FetchStage.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/tools/llvm-mca/FetchStage.cpp b/llvm/tools/llvm-mca/FetchStage.cpp index a1da841d1bd1..d73585869e17 100644 --- a/llvm/tools/llvm-mca/FetchStage.cpp +++ b/llvm/tools/llvm-mca/FetchStage.cpp @@ -14,9 +14,8 @@ //===----------------------------------------------------------------------===// #include "FetchStage.h" -#include "Instruction.h" -using namespace mca; +namespace mca { bool FetchStage::isReady() const { return SM.hasNext(); } @@ -40,3 +39,5 @@ void FetchStage::postExecute(const InstRef &IR) { Instructions.erase(Instructions.begin(), It); SM.updateNext(); } + +} // namespace mca diff --git a/llvm/tools/llvm-mca/FetchStage.h b/llvm/tools/llvm-mca/FetchStage.h index 687c59797978..b288d7aae991 100644 --- a/llvm/tools/llvm-mca/FetchStage.h +++ b/llvm/tools/llvm-mca/FetchStage.h @@ -17,7 +17,6 @@ #define LLVM_TOOLS_LLVM_MCA_FETCH_STAGE_H #include "InstrBuilder.h" -#include "Instruction.h" #include "SourceMgr.h" #include "Stage.h" #include