From 1e9d2f908e924002a4c91de1ff3a035897dd9ae7 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 7 Jun 2020 11:44:27 +0100 Subject: [PATCH] OrderedInstructions.h - reduce includes to forward declarations. NFC. --- llvm/include/llvm/Analysis/OrderedInstructions.h | 7 +++---- llvm/lib/Analysis/OrderedInstructions.cpp | 2 ++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Analysis/OrderedInstructions.h b/llvm/include/llvm/Analysis/OrderedInstructions.h index e380a00..b2bf857 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 98a65f3..58d9a61 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, -- 2.7.4