From: Simon Pilgrim Date: Sat, 9 May 2020 14:10:51 +0000 (+0100) Subject: LTO.h - reduce includes to forward declarations. NFC. X-Git-Tag: llvmorg-12-init~6530 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b9783350b3a9644dc6e0ba94c0f6a87ca45cb36;p=platform%2Fupstream%2Fllvm.git LTO.h - reduce includes to forward declarations. NFC. Add missing ToolOutputFile.h dependency to BackendUtil.cpp --- 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