[llvm] 68a1cbe - SubtargetFeatureInfo.h - remove unnecessary include and forward declarations. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 20 05:39:37 PDT 2020
Author: Simon Pilgrim
Date: 2020-07-20T13:39:24+01:00
New Revision: 68a1cbe11a598516ea1a2e969cd720ee9895a1dc
URL: https://github.com/llvm/llvm-project/commit/68a1cbe11a598516ea1a2e969cd720ee9895a1dc
DIFF: https://github.com/llvm/llvm-project/commit/68a1cbe11a598516ea1a2e969cd720ee9895a1dc.diff
LOG: SubtargetFeatureInfo.h - remove unnecessary include and forward declarations. NFCI.
Move necessary include down to SubtargetFeatureInfo.cpp.
Added:
Modified:
llvm/utils/TableGen/SubtargetFeatureInfo.cpp
llvm/utils/TableGen/SubtargetFeatureInfo.h
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/SubtargetFeatureInfo.cpp b/llvm/utils/TableGen/SubtargetFeatureInfo.cpp
index 3821f4757464..975a014205d7 100644
--- a/llvm/utils/TableGen/SubtargetFeatureInfo.cpp
+++ b/llvm/utils/TableGen/SubtargetFeatureInfo.cpp
@@ -7,11 +7,10 @@
//===----------------------------------------------------------------------===//
#include "SubtargetFeatureInfo.h"
-
#include "Types.h"
#include "llvm/Config/llvm-config.h"
+#include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Record.h"
-
#include <map>
using namespace llvm;
diff --git a/llvm/utils/TableGen/SubtargetFeatureInfo.h b/llvm/utils/TableGen/SubtargetFeatureInfo.h
index d72f8b93461f..8c8a4487934c 100644
--- a/llvm/utils/TableGen/SubtargetFeatureInfo.h
+++ b/llvm/utils/TableGen/SubtargetFeatureInfo.h
@@ -9,17 +9,12 @@
#ifndef LLVM_UTIL_TABLEGEN_SUBTARGETFEATUREINFO_H
#define LLVM_UTIL_TABLEGEN_SUBTARGETFEATUREINFO_H
-#include "llvm/TableGen/Error.h"
#include "llvm/TableGen/Record.h"
-
#include <map>
#include <string>
#include <vector>
namespace llvm {
-class Record;
-class RecordKeeper;
-
struct SubtargetFeatureInfo;
using SubtargetFeatureInfoMap = std::map<Record *, SubtargetFeatureInfo, LessRecordByID>;
More information about the llvm-commits
mailing list