[llvm] 8fd9af4 - Remark.h - reduce ArrayRef.h include to SmallVector.h. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri May 8 03:11:51 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-08T11:10:28+01:00
New Revision: 8fd9af4518623f9a076d066adaad152304170fc0
URL: https://github.com/llvm/llvm-project/commit/8fd9af4518623f9a076d066adaad152304170fc0
DIFF: https://github.com/llvm/llvm-project/commit/8fd9af4518623f9a076d066adaad152304170fc0.diff
LOG: Remark.h - reduce ArrayRef.h include to SmallVector.h. NFC.
We only need to include SmallVector.h in Remark.h, and then the more bulky ArrayRef.h in Remark.cpp.
Added:
Modified:
llvm/include/llvm/Remarks/Remark.h
llvm/lib/Remarks/Remark.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Remarks/Remark.h b/llvm/include/llvm/Remarks/Remark.h
index 6211db4a8e96..160e8dc8db70 100644
--- a/llvm/include/llvm/Remarks/Remark.h
+++ b/llvm/include/llvm/Remarks/Remark.h
@@ -14,8 +14,8 @@
#define LLVM_REMARKS_REMARK_H
#include "llvm-c/Remarks.h"
-#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
+#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/CBindingWrapping.h"
#include <string>
diff --git a/llvm/lib/Remarks/Remark.cpp b/llvm/lib/Remarks/Remark.cpp
index 401ac514b011..057d1a378599 100644
--- a/llvm/lib/Remarks/Remark.cpp
+++ b/llvm/lib/Remarks/Remark.cpp
@@ -11,8 +11,7 @@
//===----------------------------------------------------------------------===//
#include "llvm/Remarks/Remark.h"
-#include "llvm-c/Remarks.h"
-#include "llvm/Support/CBindingWrapping.h"
+#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
More information about the llvm-commits
mailing list