[llvm] e6aba43 - SafeStackColoring.h - reduce Instructions.h include to forward declaration. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat May 30 06:55:29 PDT 2020
Author: Simon Pilgrim
Date: 2020-05-30T14:38:02+01:00
New Revision: e6aba43cda848f4a8cfa5ce9f174b77def10e9df
URL: https://github.com/llvm/llvm-project/commit/e6aba43cda848f4a8cfa5ce9f174b77def10e9df
DIFF: https://github.com/llvm/llvm-project/commit/e6aba43cda848f4a8cfa5ce9f174b77def10e9df.diff
LOG: SafeStackColoring.h - reduce Instructions.h include to forward declaration. NFC.
SafeStackColoring.cpp - remove includes directly defined in SafeStackColoring.h header. NFC.
Added:
Modified:
llvm/lib/CodeGen/SafeStackColoring.cpp
llvm/lib/CodeGen/SafeStackColoring.h
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SafeStackColoring.cpp b/llvm/lib/CodeGen/SafeStackColoring.cpp
index 04a5c4b6d892..27600f2d6eac 100644
--- a/llvm/lib/CodeGen/SafeStackColoring.cpp
+++ b/llvm/lib/CodeGen/SafeStackColoring.cpp
@@ -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"
@@ -23,10 +19,7 @@
#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;
diff --git a/llvm/lib/CodeGen/SafeStackColoring.h b/llvm/lib/CodeGen/SafeStackColoring.h
index b696b1b6baed..d917d02099bc 100644
--- a/llvm/lib/CodeGen/SafeStackColoring.h
+++ b/llvm/lib/CodeGen/SafeStackColoring.h
@@ -13,13 +13,13 @@
#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;
More information about the llvm-commits
mailing list