aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/llvm-mca/FetchStage.cpp5
-rw-r--r--llvm/tools/llvm-mca/FetchStage.h1
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/FetchStage.cpp b/llvm/tools/llvm-mca/FetchStage.cpp
index a1da841..d735858 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 687c597..b288d7a 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 <map>