raw_ostream: Forward declare OpenFlags and include FileSystem.h only where necessary.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 29 Apr 2014 23:26:49 +0000 (23:26 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 29 Apr 2014 23:26:49 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207593 91177308-0d34-0410-b5e6-96231b3b80d8

30 files changed:
include/llvm/Analysis/BlockFrequencyInfoImpl.h
include/llvm/Analysis/DOTGraphTraitsPass.h
include/llvm/MC/MCSectionELF.h
include/llvm/Support/FileSystem.h
include/llvm/Support/raw_ostream.h
lib/Analysis/CFGPrinter.cpp
lib/Bitcode/Writer/BitWriter.cpp
lib/CodeGen/MachineVerifier.cpp
lib/CodeGen/RegAllocPBQP.cpp
lib/IR/Core.cpp
lib/MC/MCModuleYAML.cpp
lib/MC/MCParser/AsmParser.cpp
lib/MC/MCParser/DarwinAsmParser.cpp
lib/Object/ELFYAML.cpp
lib/ProfileData/InstrProfIndexed.h
lib/Support/Timer.cpp
lib/TableGen/Main.cpp
lib/Target/TargetMachineC.cpp
tools/llc/llc.cpp
tools/llvm-as/llvm-as.cpp
tools/llvm-dis/llvm-dis.cpp
tools/llvm-extract/llvm-extract.cpp
tools/llvm-link/llvm-link.cpp
tools/llvm-lto/llvm-lto.cpp
tools/llvm-profdata/llvm-profdata.cpp
tools/llvm-stress/llvm-stress.cpp
tools/opt/opt.cpp
unittests/LineEditor/LineEditor.cpp
utils/FileUpdate/FileUpdate.cpp
utils/TableGen/AsmWriterEmitter.cpp

index 7f7d266f7bfe130116611031dc43f57e9081a30a..8018f784b88ce14aba473c5011f8e408cd542d3f 100644 (file)
 #include "llvm/Support/BranchProbability.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/raw_ostream.h"
+#include <deque>
+#include <list>
 #include <string>
 #include <vector>
-#include <list>
 
 #define DEBUG_TYPE "block-freq"
 
index ff3392a1f99a2ad0d1940900d8464264eecfcf93..53c832cbebeee3a95db43d00b912b14770f7fed4 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "llvm/Analysis/CFGPrinter.h"
 #include "llvm/Pass.h"
+#include "llvm/Support/FileSystem.h"
 
 namespace llvm {
 
index b91cea5c99f517cd4fcc62e803153fbe519baca8..5ec23f1afad21c76438736077e42e9e573a5243b 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef LLVM_MC_MCSECTIONELF_H
 #define LLVM_MC_MCSECTIONELF_H
 
-#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/Twine.h"
 #include "llvm/MC/MCSection.h"
 #include "llvm/MC/MCSymbol.h"
 #include "llvm/Support/Debug.h"
index a92645c98670fbc8226327e3bd583f933e039bb5..806a3e376ccc74c1db9a29a2c0dc9dd4168992fb 100644 (file)
@@ -577,7 +577,7 @@ error_code createTemporaryFile(const Twine &Prefix, StringRef Suffix,
 error_code createUniqueDirectory(const Twine &Prefix,
                                  SmallVectorImpl<char> &ResultPath);
 
-enum OpenFlags {
+enum OpenFlags : unsigned {
   F_None = 0,
 
   /// F_Excl - When opening a file, this flag makes raw_fd_ostream
index a0f2c7798fb45118f6a587a9937f2b96de2e3a76..94e4b19b7afc0428a0313cd54cf74fe587bae297 100644 (file)
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/DataTypes.h"
-#include "llvm/Support/FileSystem.h"
 
 namespace llvm {
   class format_object_base;
   template <typename T>
   class SmallVectorImpl;
 
+  namespace sys {
+    namespace fs {
+      enum OpenFlags : unsigned;
+    }
+  }
+
 /// raw_ostream - This class implements an extremely fast bulk output stream
 /// that can *only* output to a stream.  It does not support seeking, reopening,
 /// rewinding, line buffered disciplines etc. It is a simple buffer that outputs
index 0fcc24e40997fb08be67e578c9d3067d5915d23a..6d421ab2361f4b6b9128527e698ab680fef172a3 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "llvm/Analysis/CFGPrinter.h"
 #include "llvm/Pass.h"
+#include "llvm/Support/FileSystem.h"
 using namespace llvm;
 
 namespace {
index 0275f96fc9ba380db8d8e3a1c8dc3629ed4416bf..3747122fc98f5e706bf1549597c9f6f3372c4985 100644 (file)
@@ -10,6 +10,7 @@
 #include "llvm-c/BitWriter.h"
 #include "llvm/Bitcode/ReaderWriter.h"
 #include "llvm/IR/Module.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
index e218a274d0d0c9cdbbb61d3e92418260affbef86..37d476b2c091b4d4a3b4c69585e4a4cda7fd336a 100644 (file)
@@ -42,6 +42,7 @@
 #include "llvm/MC/MCAsmInfo.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Target/TargetMachine.h"
index 9f8b401a81f13868f0b2570f1ce45b0b30b5d82f..323368bd3e60cb2248d97e46de5617bede95b43e 100644 (file)
@@ -46,6 +46,7 @@
 #include "llvm/CodeGen/VirtRegMap.h"
 #include "llvm/IR/Module.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Target/TargetInstrInfo.h"
 #include "llvm/Target/TargetMachine.h"
index a843b9f6029881b913cf5141c821a405e3157396..e5b98b89db6c56463c3649d3537e4b75aa10c553 100644 (file)
@@ -31,6 +31,7 @@
 #include "llvm/PassManager.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/ErrorHandling.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/Threading.h"
index 93180b918d2c588d43d0b742debe3ef907e5ab5d..f81cb149d83a9ab903935a8c84e356d066c66c6c 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/Object/YAML.h"
 #include "llvm/Support/Allocator.h"
+#include "llvm/Support/Casting.h"
 #include "llvm/Support/MathExtras.h"
 #include "llvm/Support/YAMLTraits.h"
 #include <vector>
index bad28ef87d1c306429d9cdf27828c0f95b655854..633d101248161e24c7b92e44ee3f8e6bf65b9ba8 100644 (file)
@@ -39,6 +39,7 @@
 #include "llvm/Support/SourceMgr.h"
 #include "llvm/Support/raw_ostream.h"
 #include <cctype>
+#include <deque>
 #include <set>
 #include <string>
 #include <vector>
index 873a87d4135e5ea0225be4e15128e72178d8b6a3..f74b30a4f126c7dc5d013df3d0bb70d96acc5d42 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/MC/MCSectionMachO.h"
 #include "llvm/MC/MCStreamer.h"
 #include "llvm/MC/MCSymbol.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/SourceMgr.h"
 using namespace llvm;
index 4b6522448ca940414f0ae3d29c11434b11e956ed..4f0da24e404b93f63ac217160a02ceec89de2d57 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Object/ELFYAML.h"
+#include "llvm/Support/Casting.h"
 
 namespace llvm {
 
index ede5368ca2c2ffa1ead9207eddf2d7afae451ee9..776170407bc3d1af2a0d2316512e558bee3abbb6 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_PROFILEDATA_INSTRPROF_INDEXED_H_
 #define LLVM_PROFILEDATA_INSTRPROF_INDEXED_H_
 
+#include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/MD5.h"
 
 namespace llvm {
index eb3ffc44c8e5fc00f5b8d8c68d32fae6bf5660f7..61465ae5e8be861a33d12058c38fa9c11cf50b9d 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/ADT/StringMap.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/Mutex.h"
index fd81ab4f2b7430ee3e93efe344879c33760d2c64..476026dfd7676e598d4d7d2b077acb30e283a30b 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "TGParser.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/ToolOutputFile.h"
 #include "llvm/Support/system_error.h"
index fa3e67a880a7548e561033253ece40a4115153d6..f2ac93e76847232774038c3ac24286c1f6254b17 100644 (file)
@@ -18,6 +18,7 @@
 #include "llvm/IR/Module.h"
 #include "llvm/PassManager.h"
 #include "llvm/Support/CodeGen.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FormattedStream.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/TargetRegistry.h"
index 6dc5a32263b52c8969d70a872c3f60f9d03a71d5..6ddda204410784208ed6e546ea7f627a5ff8bd05 100644 (file)
@@ -28,6 +28,7 @@
 #include "llvm/PassManager.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FormattedStream.h"
 #include "llvm/Support/Host.h"
 #include "llvm/Support/ManagedStatic.h"
index 70c95080e902792dad9055a4010f1cf0097c61c6..007241c5068dd724960805bdc2f50406e9ebabfd 100644 (file)
@@ -21,6 +21,7 @@
 #include "llvm/IR/Module.h"
 #include "llvm/IR/Verifier.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
index 2c9322ea56c283cd5a9e2e687a484e60b437d30e..0df7328ffc348ca9dec058e6ee1c52886d4b9fbb 100644 (file)
@@ -25,6 +25,7 @@
 #include "llvm/IR/Type.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/DataStream.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FormattedStream.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
index 4131177bd401f06d2b787e9280b2185b9794c577..769f82a057dc45369556589e6de797b10b2471b8 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/IRReader/IRReader.h"
 #include "llvm/PassManager.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Regex.h"
index a756a1c33a2e5748db68a4b70cae6b603cbd471d..ed8c06e79843965a082f8d216b6d77899b1c238d 100644 (file)
@@ -19,6 +19,7 @@
 #include "llvm/IR/Verifier.h"
 #include "llvm/IRReader/IRReader.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/PrettyStackTrace.h"
index 678e4db08f3c74f3cae713609643112eba7d471c..8c2d1cdfbb8ea9e1300fea78ec53f9d69fca31a4 100644 (file)
@@ -17,6 +17,7 @@
 #include "llvm/LTO/LTOCodeGenerator.h"
 #include "llvm/LTO/LTOModule.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
index 17710f64ae4788273306393f83b52448b510effb..fdde32ac6bb142f8eab6e10f4bb5db5617dee5ad 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/ProfileData/InstrProfReader.h"
 #include "llvm/ProfileData/InstrProfWriter.h"
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/MemoryBuffer.h"
index b7bcae7b73cf7179649e056aac4fae2044f2e5e9..23d3b636b190dcf0ac6ad55b230609a019b06cf7 100644 (file)
@@ -22,6 +22,7 @@
 #include "llvm/IR/Verifier.h"
 #include "llvm/PassManager.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PluginLoader.h"
 #include "llvm/Support/PrettyStackTrace.h"
index 9b3ce9bdbec3768f68c06b0e0e5e2d18f4995f16..6f0fbf66b73a9abe77662df1a9ea07ee2a4b2a83 100644 (file)
@@ -35,6 +35,7 @@
 #include "llvm/MC/SubtargetFeature.h"
 #include "llvm/PassManager.h"
 #include "llvm/Support/Debug.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/ManagedStatic.h"
 #include "llvm/Support/PluginLoader.h"
 #include "llvm/Support/PrettyStackTrace.h"
index cb115bd7dedb27a7662c7cf1bc6ad680ebb24346..26053c0ede24178b4d6e1bd0b5a06e80c86b36ad 100644 (file)
@@ -8,6 +8,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/LineEditor/LineEditor.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
 #include "gtest/gtest.h"
 
index 5ccf3f32a068681f0252f44ac19e8715146e3ac9..1bf1248f65e0b1debc2f79ab64776c324c65d8e0 100644 (file)
@@ -14,6 +14,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/CommandLine.h"
+#include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/PrettyStackTrace.h"
 #include "llvm/Support/Signals.h"
index 666d0a1b8966a287296142879b50ab997d10c1a1..8e83df2009b4a16776388a504fad7a6064b24404 100644 (file)
@@ -15,6 +15,7 @@
 #include "AsmWriterInst.h"
 #include "CodeGenTarget.h"
 #include "SequenceToOffsetTable.h"
+#include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/Debug.h"