LLVMContextImpl.h - cleanup includes and forward declarations. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 24 Apr 2020 12:07:02 +0000 (13:07 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 24 Apr 2020 12:27:58 +0000 (13:27 +0100)
Reduce StringRef.h include to forward declaration.
Remove unnecessary ConstantFP/ConstantInt forward declarations as we have to include Constants.h

llvm/lib/IR/LLVMContextImpl.h

index 26e08d2..52e9c06 100644 (file)
@@ -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;