[llvm] 175fc40 - CFG.h - reduce includes to forward declarations. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 7 09:28:45 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-07T17:25:35+01:00
New Revision: 175fc4023a2b9c4fd62c907868fb7c2e45e2db1d

URL: https://github.com/llvm/llvm-project/commit/175fc4023a2b9c4fd62c907868fb7c2e45e2db1d
DIFF: https://github.com/llvm/llvm-project/commit/175fc4023a2b9c4fd62c907868fb7c2e45e2db1d.diff

LOG: CFG.h - reduce includes to forward declarations. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/IR/CFG.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/CFG.h b/llvm/include/llvm/IR/CFG.h
index b166df954cd7..f798b1af6c83 100644
--- a/llvm/include/llvm/IR/CFG.h
+++ b/llvm/include/llvm/IR/CFG.h
@@ -22,18 +22,19 @@
 #include "llvm/ADT/GraphTraits.h"
 #include "llvm/ADT/iterator.h"
 #include "llvm/ADT/iterator_range.h"
-#include "llvm/IR/BasicBlock.h"
 #include "llvm/IR/Function.h"
-#include "llvm/IR/InstrTypes.h"
 #include "llvm/IR/Value.h"
 #include "llvm/Support/Casting.h"
-#include "llvm/Support/type_traits.h"
 #include <cassert>
 #include <cstddef>
 #include <iterator>
 
 namespace llvm {
 
+class BasicBlock;
+class Instruction;
+class Use;
+
 //===----------------------------------------------------------------------===//
 // BasicBlock pred_iterator definition
 //===----------------------------------------------------------------------===//


        


More information about the llvm-commits mailing list