[llvm] 1e9d2f9 - OrderedInstructions.h - reduce includes to forward declarations. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 7 03:52:28 PDT 2020
Author: Simon Pilgrim
Date: 2020-06-07T11:44:43+01:00
New Revision: 1e9d2f908e924002a4c91de1ff3a035897dd9ae7
URL: https://github.com/llvm/llvm-project/commit/1e9d2f908e924002a4c91de1ff3a035897dd9ae7
DIFF: https://github.com/llvm/llvm-project/commit/1e9d2f908e924002a4c91de1ff3a035897dd9ae7.diff
LOG: OrderedInstructions.h - reduce includes to forward declarations. NFC.
Added:
Modified:
llvm/include/llvm/Analysis/OrderedInstructions.h
llvm/lib/Analysis/OrderedInstructions.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/OrderedInstructions.h b/llvm/include/llvm/Analysis/OrderedInstructions.h
index e380a0045377..b2bf85750228 100644
--- a/llvm/include/llvm/Analysis/OrderedInstructions.h
+++ b/llvm/include/llvm/Analysis/OrderedInstructions.h
@@ -18,12 +18,11 @@
#ifndef LLVM_ANALYSIS_ORDEREDINSTRUCTIONS_H
#define LLVM_ANALYSIS_ORDEREDINSTRUCTIONS_H
-#include "llvm/ADT/DenseMap.h"
-#include "llvm/IR/Dominators.h"
-#include "llvm/IR/Operator.h"
-
namespace llvm {
+class DominatorTree;
+class Instruction;
+
class OrderedInstructions {
/// The dominator tree of the parent function.
DominatorTree *DT;
diff --git a/llvm/lib/Analysis/OrderedInstructions.cpp b/llvm/lib/Analysis/OrderedInstructions.cpp
index 98a65f31a36c..58d9a618184a 100644
--- a/llvm/lib/Analysis/OrderedInstructions.cpp
+++ b/llvm/lib/Analysis/OrderedInstructions.cpp
@@ -11,6 +11,8 @@
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/OrderedInstructions.h"
+#include "llvm/IR/Dominators.h"
+
using namespace llvm;
bool OrderedInstructions::localDominates(const Instruction *InstA,
More information about the llvm-commits
mailing list