Skip to content

Commit ba70533

Browse files
akashagrwlAkash Agrawal
andauthored
[LLVM] [NFC] - Remove duplicate #include headers from the files of llvm dir (#141057)
A few files of llvm dir had duplicate headers included. This patch removes those redundancies. --------- Co-authored-by: Akash Agrawal <akashag@qti.qualcomm.com>
1 parent 3833513 commit ba70533

File tree

8 files changed

+2
-11
lines changed

8 files changed

+2
-11
lines changed

llvm/lib/IR/ProfDataUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "llvm/IR/ProfDataUtils.h"
14+
1415
#include "llvm/ADT/SmallVector.h"
1516
#include "llvm/IR/Constants.h"
1617
#include "llvm/IR/Function.h"
1718
#include "llvm/IR/Instructions.h"
1819
#include "llvm/IR/LLVMContext.h"
1920
#include "llvm/IR/MDBuilder.h"
2021
#include "llvm/IR/Metadata.h"
21-
#include "llvm/IR/ProfDataUtils.h"
2222

2323
using namespace llvm;
2424

llvm/lib/Transforms/IPO/StripSymbols.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
//===----------------------------------------------------------------------===//
2121

2222
#include "llvm/Transforms/IPO/StripSymbols.h"
23+
2324
#include "llvm/ADT/SmallPtrSet.h"
2425
#include "llvm/IR/Constants.h"
2526
#include "llvm/IR/DebugInfo.h"
@@ -33,7 +34,6 @@
3334
#include "llvm/IR/ValueSymbolTable.h"
3435
#include "llvm/Support/Casting.h"
3536
#include "llvm/Support/CommandLine.h"
36-
#include "llvm/Transforms/IPO/StripSymbols.h"
3737
#include "llvm/Transforms/Utils/Local.h"
3838

3939
using namespace llvm;

llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#include "llvm/DebugInfo/GSYM/LookupResult.h"
4747
#include "llvm/DebugInfo/GSYM/ObjectFileTransformer.h"
4848
#include "llvm/DebugInfo/GSYM/OutputAggregator.h"
49-
#include <optional>
5049

5150
using namespace llvm;
5251
using namespace gsym;

llvm/tools/llvm-pdbutil/PrettyClassLayoutGraphicalDumper.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "PrettyFunctionDumper.h"
1414
#include "PrettyTypedefDumper.h"
1515
#include "PrettyVariableDumper.h"
16-
#include "PrettyVariableDumper.h"
1716
#include "llvm-pdbutil.h"
1817

1918
#include "llvm/DebugInfo/PDB/IPDBLineNumber.h"

llvm/unittests/CodeGen/DroppedVariableStatsMIRTest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@
1919
#include "llvm/Support/TargetSelect.h"
2020
#include "llvm/Target/TargetMachine.h"
2121
#include "gtest/gtest.h"
22-
#include <gtest/gtest.h>
2322
#include <llvm/ADT/SmallString.h>
2423
#include <llvm/IR/LLVMContext.h>
25-
#include <llvm/IR/Module.h>
2624
#include <llvm/IR/PassInstrumentation.h>
2725
#include <llvm/IR/PassManager.h>
2826
#include <llvm/IR/PassTimingInfo.h>

llvm/unittests/IR/DroppedVariableStatsIRTest.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
#include "llvm/Passes/StandardInstrumentations.h"
1717
#include "llvm/Support/SourceMgr.h"
1818
#include "gtest/gtest.h"
19-
#include <gtest/gtest.h>
2019
#include <llvm/ADT/SmallString.h>
2120
#include <llvm/IR/LLVMContext.h>
22-
#include <llvm/IR/Module.h>
2321
#include <llvm/IR/PassInstrumentation.h>
2422
#include <llvm/IR/PassManager.h>
2523
#include <llvm/IR/PassTimingInfo.h>

llvm/unittests/Support/ManagedStatic.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#include <pthread.h>
1616
#endif
1717

18-
#include "gtest/gtest.h"
19-
2018
using namespace llvm;
2119

2220
namespace {

llvm/unittests/Support/Path.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "llvm/ADT/ScopeExit.h"
1212
#include "llvm/ADT/SmallVector.h"
1313
#include "llvm/BinaryFormat/Magic.h"
14-
#include "llvm/Config/llvm-config.h"
1514
#include "llvm/Config/llvm-config.h" // for LLVM_ON_UNIX
1615
#include "llvm/Support/Compiler.h"
1716
#include "llvm/Support/ConvertUTF.h"

0 commit comments

Comments
 (0)