SafeStackColoring.h - reduce Instructions.h include to forward declaration. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 30 May 2020 13:38:02 +0000 (14:38 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 30 May 2020 13:38:02 +0000 (14:38 +0100)
SafeStackColoring.cpp - remove includes directly defined in SafeStackColoring.h header. NFC.

llvm/lib/CodeGen/SafeStackColoring.cpp
llvm/lib/CodeGen/SafeStackColoring.h

index 04a5c4b..27600f2 100644 (file)
@@ -7,14 +7,10 @@
 //===----------------------------------------------------------------------===//
 
 #include "SafeStackColoring.h"
-#include "llvm/ADT/BitVector.h"
-#include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/DepthFirstIterator.h"
-#include "llvm/ADT/SmallVector.h"
 #include "llvm/Config/llvm-config.h"
 #include "llvm/IR/BasicBlock.h"
 #include "llvm/IR/CFG.h"
-#include "llvm/IR/Instruction.h"
 #include "llvm/IR/Instructions.h"
 #include "llvm/IR/IntrinsicInst.h"
 #include "llvm/IR/Intrinsics.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/Debug.h"
-#include "llvm/Support/raw_ostream.h"
-#include <cassert>
 #include <tuple>
-#include <utility>
 
 using namespace llvm;
 using namespace llvm::safestack;
index b696b1b..d917d02 100644 (file)
 #include "llvm/ADT/BitVector.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/IR/Instructions.h"
 #include "llvm/Support/raw_ostream.h"
 #include <cassert>
 #include <utility>
 
 namespace llvm {
 
+class AllocaInst;
 class BasicBlock;
 class Function;
 class Instruction;