Skip to content

Commit 62602a4

Browse files
author
Michael Zolotukhin
committed
Remove redundant includes from tools.
llvm-svn: 320631
1 parent 5c0ab47 commit 62602a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+0
-141
lines changed

llvm/tools/bugpoint-passes/TestPasses.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ static RegisterPass<CrashOnDeclFunc>
9999
Z("bugpoint-crash-decl-funcs",
100100
"BugPoint Test Pass - Intentionally crash on declared functions");
101101

102-
#include <iostream>
103102
namespace {
104103
/// CrashOnOneCU - This pass is used to test bugpoint. It intentionally
105104
/// crashes if the Module has two or more compile units

llvm/tools/bugpoint/FindBugs.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,8 @@
1515
//===----------------------------------------------------------------------===//
1616

1717
#include "BugDriver.h"
18-
#include "ToolRunner.h"
19-
#include "llvm/Pass.h"
2018
#include "llvm/Support/FileSystem.h"
2119
#include "llvm/Support/raw_ostream.h"
22-
#include <algorithm>
23-
#include <ctime>
2420
#include <random>
2521
using namespace llvm;
2622

llvm/tools/bugpoint/OptimizerDriver.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,17 @@
1818
#include "BugDriver.h"
1919
#include "llvm/Bitcode/BitcodeWriter.h"
2020
#include "llvm/IR/DataLayout.h"
21-
#include "llvm/IR/LegacyPassManager.h"
2221
#include "llvm/IR/Module.h"
23-
#include "llvm/IR/Verifier.h"
2422
#include "llvm/Support/CommandLine.h"
2523
#include "llvm/Support/Debug.h"
2624
#include "llvm/Support/FileUtilities.h"
2725
#include "llvm/Support/Path.h"
2826
#include "llvm/Support/Program.h"
29-
#include "llvm/Support/SystemUtils.h"
3027
#include "llvm/Support/ToolOutputFile.h"
3128

3229
#define DONT_GET_PLUGIN_LOADER_OPTION
3330
#include "llvm/Support/PluginLoader.h"
3431

35-
#include <fstream>
3632

3733
using namespace llvm;
3834

llvm/tools/dsymutil/MachODebugMapParser.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include "BinaryHolder.h"
1111
#include "DebugMap.h"
12-
#include "dsymutil.h"
1312
#include "llvm/ADT/Optional.h"
1413
#include "llvm/Object/MachO.h"
1514
#include "llvm/Support/Path.h"

llvm/tools/llvm-ar/llvm-ar.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "llvm/ADT/StringSwitch.h"
1616
#include "llvm/ADT/Triple.h"
1717
#include "llvm/IR/LLVMContext.h"
18-
#include "llvm/IR/Module.h"
1918
#include "llvm/ToolDrivers/llvm-dlltool/DlltoolDriver.h"
2019
#include "llvm/ToolDrivers/llvm-lib/LibDriver.h"
2120
#include "llvm/Object/Archive.h"
@@ -36,9 +35,6 @@
3635
#include "llvm/Support/TargetSelect.h"
3736
#include "llvm/Support/ToolOutputFile.h"
3837
#include "llvm/Support/raw_ostream.h"
39-
#include <algorithm>
40-
#include <cstdlib>
41-
#include <memory>
4238

4339
#if !defined(_MSC_VER) && !defined(__MINGW32__)
4440
#include <unistd.h>

llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "llvm/Bitcode/BitcodeReader.h"
3232
#include "llvm/Bitcode/BitstreamReader.h"
3333
#include "llvm/Bitcode/LLVMBitCodes.h"
34-
#include "llvm/IR/Verifier.h"
3534
#include "llvm/Support/CommandLine.h"
3635
#include "llvm/Support/Format.h"
3736
#include "llvm/Support/ManagedStatic.h"
@@ -40,10 +39,6 @@
4039
#include "llvm/Support/SHA1.h"
4140
#include "llvm/Support/Signals.h"
4241
#include "llvm/Support/raw_ostream.h"
43-
#include <algorithm>
44-
#include <cctype>
45-
#include <map>
46-
#include <system_error>
4742
using namespace llvm;
4843

4944
static cl::opt<std::string>

llvm/tools/llvm-c-test/debuginfo.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
|* *|
1212
\*===----------------------------------------------------------------------===*/
1313

14-
#include "llvm-c-test.h"
1514
#include "llvm-c/DebugInfo.h"
16-
#include <string.h>
1715
#include <stdio.h>
1816

1917
int llvm_test_dibuilder() {

llvm/tools/llvm-c-test/helpers.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
|* *|
1212
\*===----------------------------------------------------------------------===*/
1313

14-
#include "llvm-c-test.h"
1514
#include <stdio.h>
1615
#include <string.h>
1716

llvm/tools/llvm-c-test/main.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
\*===----------------------------------------------------------------------===*/
1313

1414
#include "llvm-c-test.h"
15-
#include "llvm-c/BitReader.h"
1615
#include <stdio.h>
17-
#include <stdlib.h>
1816
#include <string.h>
1917

2018
static void print_usage(void) {

llvm/tools/llvm-c-test/module.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include "llvm-c/BitReader.h"
1717
#include <stdio.h>
1818
#include <stdlib.h>
19-
#include <string.h>
2019

2120
static void diagnosticHandler(LLVMDiagnosticInfoRef DI, void *C) {
2221
char *CErr = LLVMGetDiagInfoDescription(DI);

0 commit comments

Comments
 (0)