From 0b9783350b3a9644dc6e0ba94c0f6a87ca45cb36 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 9 May 2020 15:10:51 +0100 Subject: [PATCH] LTO.h - reduce includes to forward declarations. NFC. Add missing ToolOutputFile.h dependency to BackendUtil.cpp --- clang/lib/CodeGen/BackendUtil.cpp | 1 + llvm/include/llvm/LTO/LTO.h | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index ba61a93..efbc775 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -46,6 +46,7 @@ #include "llvm/Support/TargetRegistry.h" #include "llvm/Support/TimeProfiler.h" #include "llvm/Support/Timer.h" +#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Target/TargetOptions.h" diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h index 0a635b4..c25aa07 100644 --- a/llvm/include/llvm/LTO/LTO.h +++ b/llvm/include/llvm/LTO/LTO.h @@ -17,28 +17,24 @@ #include "llvm/ADT/MapVector.h" #include "llvm/ADT/StringMap.h" -#include "llvm/ADT/StringSet.h" -#include "llvm/IR/DiagnosticInfo.h" -#include "llvm/IR/LLVMRemarkStreamer.h" #include "llvm/IR/ModuleSummaryIndex.h" #include "llvm/LTO/Config.h" -#include "llvm/Linker/IRMover.h" #include "llvm/Object/IRSymtab.h" #include "llvm/Support/Error.h" -#include "llvm/Support/ToolOutputFile.h" #include "llvm/Support/thread.h" -#include "llvm/Target/TargetOptions.h" #include "llvm/Transforms/IPO/FunctionImport.h" namespace llvm { class BitcodeModule; class Error; +class IRMover; class LLVMContext; class MemoryBufferRef; class Module; -class Target; class raw_pwrite_stream; +class Target; +class ToolOutputFile; /// Resolve linkage for prevailing symbols in the \p Index. Linkage changes /// recorded in the index and the ThinLTO backends must apply the changes to -- 2.7.4