[llvm] a0da446 - RemarkStringTable.h - reduce StringRef/Remark includes to forward declarations. NFC
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 04:31:46 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-08T12:30:49+01:00
New Revision: a0da4466d8ce416a48d700b7d4b7d9abc2112cda
URL: https://github.com/llvm/llvm-project/commit/a0da4466d8ce416a48d700b7d4b7d9abc2112cda
DIFF: https://github.com/llvm/llvm-project/commit/a0da4466d8ce416a48d700b7d4b7d9abc2112cda.diff
LOG: RemarkStringTable.h - reduce StringRef/Remark includes to forward declarations. NFC
Move StringRef.h include down to RemarkStringTable.cpp and remove some unused includes there as well.
Added:
Modified:
llvm/include/llvm/Remarks/RemarkStringTable.h
llvm/lib/Remarks/RemarkStringTable.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Remarks/RemarkStringTable.h b/llvm/include/llvm/Remarks/RemarkStringTable.h
index c40bb5fa0ecd..60cf601e05aa 100644
--- a/llvm/include/llvm/Remarks/RemarkStringTable.h
+++ b/llvm/include/llvm/Remarks/RemarkStringTable.h
@@ -17,18 +17,18 @@
#define LLVM_REMARKS_REMARK_STRING_TABLE_H
#include "llvm/ADT/StringMap.h"
-#include "llvm/ADT/StringRef.h"
-#include "llvm/Remarks/Remark.h"
#include "llvm/Support/Allocator.h"
#include <vector>
namespace llvm {
class raw_ostream;
+class StringRef;
namespace remarks {
struct ParsedStringTable;
+struct Remark;
/// The string table used for serializing remarks.
/// This table can be for example serialized in a section to be consumed after
diff --git a/llvm/lib/Remarks/RemarkStringTable.cpp b/llvm/lib/Remarks/RemarkStringTable.cpp
index 51156465be51..5f462f01bb9a 100644
--- a/llvm/lib/Remarks/RemarkStringTable.cpp
+++ b/llvm/lib/Remarks/RemarkStringTable.cpp
@@ -11,10 +11,10 @@
//===----------------------------------------------------------------------===//
#include "llvm/Remarks/RemarkStringTable.h"
+#include "llvm/ADT/StringRef.h"
#include "llvm/Remarks/Remark.h"
#include "llvm/Remarks/RemarkParser.h"
-#include "llvm/Support/EndianStream.h"
-#include "llvm/Support/Error.h"
+#include "llvm/Support/raw_ostream.h"
#include <vector>
using namespace llvm;
More information about the llvm-commits
mailing list