[llvm] 7fba79b - ScheduleDFS.h - Replace ArrayRef.h include with forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 02:02:41 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-17T10:02:06+01:00
New Revision: 7fba79be095d36f0f5eb6bc706ae4c12f5793aff
URL: https://github.com/llvm/llvm-project/commit/7fba79be095d36f0f5eb6bc706ae4c12f5793aff
DIFF: https://github.com/llvm/llvm-project/commit/7fba79be095d36f0f5eb6bc706ae4c12f5793aff.diff
LOG: ScheduleDFS.h - Replace ArrayRef.h include with forward declaration. NFC.
We have no need to include the entire header.
Added:
Modified:
llvm/include/llvm/CodeGen/ScheduleDFS.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/ScheduleDFS.h b/llvm/include/llvm/CodeGen/ScheduleDFS.h
index d60deab95f5d..2e0a30cc56e3 100644
--- a/llvm/include/llvm/CodeGen/ScheduleDFS.h
+++ b/llvm/include/llvm/CodeGen/ScheduleDFS.h
@@ -13,7 +13,6 @@
#ifndef LLVM_CODEGEN_SCHEDULEDFS_H
#define LLVM_CODEGEN_SCHEDULEDFS_H
-#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/ScheduleDAG.h"
#include <cassert>
@@ -22,6 +21,7 @@
namespace llvm {
+template <typename T> class ArrayRef;
class raw_ostream;
/// Represent the ILP of the subDAG rooted at a DAG node.
More information about the llvm-commits
mailing list