[llvm] 716a587 - LLVMContextImpl.h - cleanup includes and forward declarations. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 05:44:47 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-24T13:27:58+01:00
New Revision: 716a5875bcf29d577740b74125095efa3fcbb55c
URL: https://github.com/llvm/llvm-project/commit/716a5875bcf29d577740b74125095efa3fcbb55c
DIFF: https://github.com/llvm/llvm-project/commit/716a5875bcf29d577740b74125095efa3fcbb55c.diff
LOG: LLVMContextImpl.h - cleanup includes and forward declarations. NFC.
Reduce StringRef.h include to forward declaration.
Remove unnecessary ConstantFP/ConstantInt forward declarations as we have to include Constants.h
Added:
Modified:
llvm/lib/IR/LLVMContextImpl.h
Removed:
################################################################################
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h
index 26e08d265605..52e9c0608fb0 100644
--- a/llvm/lib/IR/LLVMContextImpl.h
+++ b/llvm/lib/IR/LLVMContextImpl.h
@@ -29,7 +29,6 @@
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
-#include "llvm/ADT/StringRef.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfoMetadata.h"
@@ -53,8 +52,7 @@
namespace llvm {
-class ConstantFP;
-class ConstantInt;
+class StringRef;
class Type;
class Value;
class ValueHandleBase;
More information about the llvm-commits
mailing list