[llvm] 073cc40 - [Support] Remove unnecessary includes (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 10 00:17:32 PST 2023
Author: Kazu Hirata
Date: 2023-12-10T00:17:26-08:00
New Revision: 073cc40a343bdb87b43a45598c947de52f6f2de5
URL: https://github.com/llvm/llvm-project/commit/073cc40a343bdb87b43a45598c947de52f6f2de5
DIFF: https://github.com/llvm/llvm-project/commit/073cc40a343bdb87b43a45598c947de52f6f2de5.diff
LOG: [Support] Remove unnecessary includes (NFC)
Added:
Modified:
llvm/include/llvm/Support/LLVMDriver.h
llvm/unittests/Support/Chrono.cpp
llvm/unittests/Support/CommandLineTest.cpp
llvm/unittests/Support/InstructionCostTest.cpp
llvm/unittests/Support/MemoryTest.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/LLVMDriver.h b/llvm/include/llvm/Support/LLVMDriver.h
index 1c68f50707770..0b2e265d50b42 100644
--- a/llvm/include/llvm/Support/LLVMDriver.h
+++ b/llvm/include/llvm/Support/LLVMDriver.h
@@ -9,8 +9,6 @@
#ifndef LLVM_SUPPORT_LLVMDRIVER_H
#define LLVM_SUPPORT_LLVMDRIVER_H
-#include "llvm/ADT/SmallVector.h"
-
namespace llvm {
struct ToolContext {
diff --git a/llvm/unittests/Support/Chrono.cpp b/llvm/unittests/Support/Chrono.cpp
index daf8a8a350f08..7dfc5dd2c2934 100644
--- a/llvm/unittests/Support/Chrono.cpp
+++ b/llvm/unittests/Support/Chrono.cpp
@@ -7,7 +7,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/Chrono.h"
-#include "llvm/ADT/SmallVector.h"
#include "llvm/Support/FormatVariadic.h"
#include "gtest/gtest.h"
diff --git a/llvm/unittests/Support/CommandLineTest.cpp b/llvm/unittests/Support/CommandLineTest.cpp
index a7db564e5fa24..762ac0ea9c36d 100644
--- a/llvm/unittests/Support/CommandLineTest.cpp
+++ b/llvm/unittests/Support/CommandLineTest.cpp
@@ -28,7 +28,6 @@
#include <fstream>
#include <stdlib.h>
#include <string>
-#include <tuple>
using namespace llvm;
using llvm::unittest::TempDir;
diff --git a/llvm/unittests/Support/InstructionCostTest.cpp b/llvm/unittests/Support/InstructionCostTest.cpp
index 2f634110bd513..4e2842d8ada97 100644
--- a/llvm/unittests/Support/InstructionCostTest.cpp
+++ b/llvm/unittests/Support/InstructionCostTest.cpp
@@ -8,7 +8,6 @@
#include "llvm/Support/InstructionCost.h"
#include "gtest/gtest.h"
-#include <limits>
using namespace llvm;
diff --git a/llvm/unittests/Support/MemoryTest.cpp b/llvm/unittests/Support/MemoryTest.cpp
index 019ece9c17259..0164492829ccd 100644
--- a/llvm/unittests/Support/MemoryTest.cpp
+++ b/llvm/unittests/Support/MemoryTest.cpp
@@ -9,7 +9,6 @@
#include "llvm/Support/Memory.h"
#include "llvm/Support/Process.h"
#include "gtest/gtest.h"
-#include <cassert>
#include <cstdlib>
#if defined(__NetBSD__)
More information about the llvm-commits
mailing list