From df91a0f79a24ae4a2ee273293997262d430e4b3e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Mon, 20 Apr 2020 17:51:22 +0100 Subject: [PATCH] TGParser.h - cleanup includes and forward declarations. NFC. Replace Twine.h/SourceMgr.h includes with forward declarations and include in TGParser.cpp Remove forward declarations we already have to include in Record.h --- llvm/lib/TableGen/TGParser.cpp | 3 ++- llvm/lib/TableGen/TGParser.h | 9 ++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp index 3d77497..16a7b97 100644 --- a/llvm/lib/TableGen/TGParser.cpp +++ b/llvm/lib/TableGen/TGParser.cpp @@ -15,12 +15,13 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" +#include "llvm/ADT/Twine.h" #include "llvm/Config/llvm-config.h" #include "llvm/Support/Casting.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" -#include "llvm/TableGen/Record.h" +#include "llvm/Support/SourceMgr.h" #include #include #include diff --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h index 992d428..872ca86 100644 --- a/llvm/lib/TableGen/TGParser.h +++ b/llvm/lib/TableGen/TGParser.h @@ -14,18 +14,13 @@ #define LLVM_LIB_TABLEGEN_TGPARSER_H #include "TGLexer.h" -#include "llvm/ADT/Twine.h" -#include "llvm/Support/SourceMgr.h" #include "llvm/TableGen/Error.h" #include "llvm/TableGen/Record.h" #include namespace llvm { - class Record; - class RecordVal; - class RecordKeeper; - class RecTy; - class Init; + class SourceMgr; + class Twine; struct ForeachLoop; struct MultiClass; struct SubClassReference; -- 2.7.4