diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-18 09:17:29 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-18 09:17:29 +0000 |
commit | b550cb1750174d9c0dc002913f10f6de01566b5a (patch) | |
tree | 89305ce645a17d5ada15bacf0e77fd83e917ec0b /llvm/lib/Support | |
parent | 7322b8bcc0509fa946b07c502b23f1134d4648a7 (diff) | |
download | bcm5719-llvm-b550cb1750174d9c0dc002913f10f6de01566b5a.tar.gz bcm5719-llvm-b550cb1750174d9c0dc002913f10f6de01566b5a.zip |
[NFC] Header cleanup
Removed some unused headers, replaced some headers with forward class declarations.
Found using simple scripts like this one:
clear && ack --cpp -l '#include "llvm/ADT/IndexedMap.h"' | xargs grep -L 'IndexedMap[<]' | xargs grep -n --color=auto 'IndexedMap'
Patch by Eugene Kosov <claprix@yandex.ru>
Differential Revision: http://reviews.llvm.org/D19219
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 266595
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/ConvertUTFWrapper.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Support/JamCRC.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/Locale.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/Support/ManagedStatic.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/SHA1.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Support/Windows/WindowsSupport.h | 1 |
6 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Support/ConvertUTFWrapper.cpp b/llvm/lib/Support/ConvertUTFWrapper.cpp index f3cef5240f6..217cedb24df 100644 --- a/llvm/lib/Support/ConvertUTFWrapper.cpp +++ b/llvm/lib/Support/ConvertUTFWrapper.cpp @@ -8,6 +8,8 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/ConvertUTF.h" +#include "llvm/ADT/ArrayRef.h" +#include "llvm/ADT/StringRef.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/SwapByteOrder.h" #include <string> diff --git a/llvm/lib/Support/JamCRC.cpp b/llvm/lib/Support/JamCRC.cpp index bc21c917d55..17c55f565e0 100644 --- a/llvm/lib/Support/JamCRC.cpp +++ b/llvm/lib/Support/JamCRC.cpp @@ -18,6 +18,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/JamCRC.h" +#include "llvm/ADT/ArrayRef.h" using namespace llvm; diff --git a/llvm/lib/Support/Locale.cpp b/llvm/lib/Support/Locale.cpp index 53bc0e36d83..e24a28be430 100644 --- a/llvm/lib/Support/Locale.cpp +++ b/llvm/lib/Support/Locale.cpp @@ -1,5 +1,6 @@ -#include "llvm/Config/llvm-config.h" #include "llvm/Support/Locale.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/Config/llvm-config.h" #include "llvm/Support/Unicode.h" namespace llvm { diff --git a/llvm/lib/Support/ManagedStatic.cpp b/llvm/lib/Support/ManagedStatic.cpp index 9868207b14f..b8fb2841e52 100644 --- a/llvm/lib/Support/ManagedStatic.cpp +++ b/llvm/lib/Support/ManagedStatic.cpp @@ -14,7 +14,6 @@ #include "llvm/Support/ManagedStatic.h" #include "llvm/Config/config.h" #include "llvm/Support/Atomic.h" -#include "llvm/Support/Compiler.h" #include "llvm/Support/Mutex.h" #include "llvm/Support/MutexGuard.h" #include <cassert> diff --git a/llvm/lib/Support/SHA1.cpp b/llvm/lib/Support/SHA1.cpp index 980c3bbffac..a461d1ebc93 100644 --- a/llvm/lib/Support/SHA1.cpp +++ b/llvm/lib/Support/SHA1.cpp @@ -15,6 +15,7 @@ #include "llvm/Support/Host.h" #include "llvm/Support/SHA1.h" +#include "llvm/ADT/ArrayRef.h" using namespace llvm; #include <stdint.h> diff --git a/llvm/lib/Support/Windows/WindowsSupport.h b/llvm/lib/Support/Windows/WindowsSupport.h index 60490f26643..a28c79f40da 100644 --- a/llvm/lib/Support/Windows/WindowsSupport.h +++ b/llvm/lib/Support/Windows/WindowsSupport.h @@ -45,7 +45,6 @@ #include <wincrypt.h> #include <cassert> #include <string> -#include <vector> /// Determines if the program is running on Windows 8 or newer. This /// reimplements one of the helpers in the Windows 8.1 SDK, which are intended |