Remove unused #includes.

llvm-svn: 282668
This commit is contained in:
Rui Ueyama 2016-09-29 01:45:22 +00:00
parent e6740754f0
commit e8b2df47a3
4 changed files with 3 additions and 25 deletions

View File

@ -16,6 +16,7 @@
#include "llvm/ADT/Optional.h" #include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h" #include "llvm/ADT/StringSet.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/Option/ArgList.h" #include "llvm/Option/ArgList.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
@ -29,7 +30,7 @@ public:
void main(ArrayRef<const char *> Args); void main(ArrayRef<const char *> Args);
void addFile(StringRef Path, bool KnownScript = false); void addFile(StringRef Path, bool KnownScript = false);
void addLibrary(StringRef Name); void addLibrary(StringRef Name);
llvm::LLVMContext Context; // to parse bitcode ifles llvm::LLVMContext Context; // to parse bitcode files
std::unique_ptr<CpioFile> Cpio; // for reproduce std::unique_ptr<CpioFile> Cpio; // for reproduce
private: private:

View File

@ -9,33 +9,12 @@
#include "LTO.h" #include "LTO.h"
#include "Config.h" #include "Config.h"
#include "Driver.h"
#include "Error.h" #include "Error.h"
#include "InputFiles.h" #include "InputFiles.h"
#include "Symbols.h" #include "Symbols.h"
#include "llvm/Analysis/AliasAnalysis.h"
#include "llvm/Analysis/CGSCCPassManager.h"
#include "llvm/Analysis/LoopPassManager.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/CodeGen/CommandFlags.h" #include "llvm/CodeGen/CommandFlags.h"
#include "llvm/CodeGen/ParallelCG.h"
#include "llvm/IR/AutoUpgrade.h"
#include "llvm/IR/DiagnosticPrinter.h" #include "llvm/IR/DiagnosticPrinter.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/IR/PassManager.h"
#include "llvm/IR/Verifier.h"
#include "llvm/LTO/LTO.h" #include "llvm/LTO/LTO.h"
#include "llvm/LTO/legacy/UpdateCompilerUsed.h"
#include "llvm/Linker/IRMover.h"
#include "llvm/Passes/PassBuilder.h"
#include "llvm/Support/StringSaver.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Transforms/IPO.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"
using namespace llvm; using namespace llvm;
using namespace llvm::object; using namespace llvm::object;

View File

@ -23,9 +23,6 @@
#include "lld/Core/LLVM.h" #include "lld/Core/LLVM.h"
#include "llvm/ADT/SmallString.h" #include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/IR/Module.h"
#include "llvm/Linker/IRMover.h"
namespace llvm { namespace llvm {
namespace lto { namespace lto {

View File

@ -21,6 +21,7 @@
#include "llvm/Support/FileOutputBuffer.h" #include "llvm/Support/FileOutputBuffer.h"
#include "llvm/Support/StringSaver.h" #include "llvm/Support/StringSaver.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include <climits>
using namespace llvm; using namespace llvm;
using namespace llvm::ELF; using namespace llvm::ELF;