diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-12-03 16:50:05 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-12-03 16:50:05 +0000 |
commit | ed0881b2a67c530079dfd4141dbd9a899e6c1a7c (patch) | |
tree | 319bab3c17b5ddc6a8cd265a180a774ede30f06e /llvm/lib/Archive | |
parent | 309adbdd435bd4d20b8dc0ab8057543929cc105c (diff) | |
download | bcm5719-llvm-ed0881b2a67c530079dfd4141dbd9a899e6c1a7c.tar.gz bcm5719-llvm-ed0881b2a67c530079dfd4141dbd9a899e6c1a7c.zip |
Use the new script to sort the includes of every file under lib.
Sooooo many of these had incorrect or strange main module includes.
I have manually inspected all of these, and fixed the main module
include to be the nearest plausible thing I could find. If you own or
care about any of these source files, I encourage you to take some time
and check that these edits were sensible. I can't have broken anything
(I strictly added headers, and reordered them, never removed), but they
may not be the headers you'd really like to identify as containing the
API being implemented.
Many forward declarations and missing includes were added to a header
files to allow them to parse cleanly when included first. The main
module rule does in fact have its merits. =]
llvm-svn: 169131
Diffstat (limited to 'llvm/lib/Archive')
-rw-r--r-- | llvm/lib/Archive/Archive.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/Archive/ArchiveReader.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/Archive/ArchiveWriter.cpp | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/Archive/Archive.cpp b/llvm/lib/Archive/Archive.cpp index 1eab27d3eba..9f1b5e9f2e1 100644 --- a/llvm/lib/Archive/Archive.cpp +++ b/llvm/lib/Archive/Archive.cpp @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +#include "llvm/Bitcode/Archive.h" #include "ArchiveInternals.h" #include "llvm/Bitcode/ReaderWriter.h" #include "llvm/Module.h" @@ -19,8 +20,8 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Process.h" #include "llvm/Support/system_error.h" -#include <memory> #include <cstring> +#include <memory> using namespace llvm; // getMemberSize - compute the actual physical size of the file member as seen diff --git a/llvm/lib/Archive/ArchiveReader.cpp b/llvm/lib/Archive/ArchiveReader.cpp index 5052495c0d6..527a72f945b 100644 --- a/llvm/lib/Archive/ArchiveReader.cpp +++ b/llvm/lib/Archive/ArchiveReader.cpp @@ -11,11 +11,12 @@ // //===----------------------------------------------------------------------===// +#include "llvm/Bitcode/Archive.h" #include "ArchiveInternals.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/Bitcode/ReaderWriter.h" -#include "llvm/Support/MemoryBuffer.h" #include "llvm/Module.h" +#include "llvm/Support/MemoryBuffer.h" #include <cstdio> #include <cstdlib> #include <memory> diff --git a/llvm/lib/Archive/ArchiveWriter.cpp b/llvm/lib/Archive/ArchiveWriter.cpp index ec6b4b87584..b9f7b2f1d02 100644 --- a/llvm/lib/Archive/ArchiveWriter.cpp +++ b/llvm/lib/Archive/ArchiveWriter.cpp @@ -11,18 +11,19 @@ // //===----------------------------------------------------------------------===// +#include "llvm/Bitcode/Archive.h" #include "ArchiveInternals.h" -#include "llvm/Module.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/Bitcode/ReaderWriter.h" +#include "llvm/Module.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Process.h" #include "llvm/Support/Signals.h" #include "llvm/Support/system_error.h" #include <fstream> -#include <ostream> #include <iomanip> +#include <ostream> using namespace llvm; // Write an integer using variable bit rate encoding. This saves a few bytes |