llvm.org GIT mirror llvm / 7259f14
raw_ostream: Forward declare OpenFlags and include FileSystem.h only where necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207593 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 5 years ago
30 changed file(s) with 36 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
2323 #include "llvm/Support/BranchProbability.h"
2424 #include "llvm/Support/Debug.h"
2525 #include "llvm/Support/raw_ostream.h"
26 #include
27 #include
2628 #include
2729 #include
28 #include
2930
3031 #define DEBUG_TYPE "block-freq"
3132
1515
1616 #include "llvm/Analysis/CFGPrinter.h"
1717 #include "llvm/Pass.h"
18 #include "llvm/Support/FileSystem.h"
1819
1920 namespace llvm {
2021
1313 #ifndef LLVM_MC_MCSECTIONELF_H
1414 #define LLVM_MC_MCSECTIONELF_H
1515
16 #include "llvm/ADT/StringRef.h"
16 #include "llvm/ADT/Twine.h"
1717 #include "llvm/MC/MCSection.h"
1818 #include "llvm/MC/MCSymbol.h"
1919 #include "llvm/Support/Debug.h"
576576 error_code createUniqueDirectory(const Twine &Prefix,
577577 SmallVectorImpl &ResultPath);
578578
579 enum OpenFlags {
579 enum OpenFlags : unsigned {
580580 F_None = 0,
581581
582582 /// F_Excl - When opening a file, this flag makes raw_fd_ostream
1616 #include "llvm/ADT/StringRef.h"
1717 #include "llvm/Support/Compiler.h"
1818 #include "llvm/Support/DataTypes.h"
19 #include "llvm/Support/FileSystem.h"
2019
2120 namespace llvm {
2221 class format_object_base;
2322 template
2423 class SmallVectorImpl;
24
25 namespace sys {
26 namespace fs {
27 enum OpenFlags : unsigned;
28 }
29 }
2530
2631 /// raw_ostream - This class implements an extremely fast bulk output stream
2732 /// that can *only* output to a stream. It does not support seeking, reopening,
1818
1919 #include "llvm/Analysis/CFGPrinter.h"
2020 #include "llvm/Pass.h"
21 #include "llvm/Support/FileSystem.h"
2122 using namespace llvm;
2223
2324 namespace {
99 #include "llvm-c/BitWriter.h"
1010 #include "llvm/Bitcode/ReaderWriter.h"
1111 #include "llvm/IR/Module.h"
12 #include "llvm/Support/FileSystem.h"
1213 #include "llvm/Support/raw_ostream.h"
1314 using namespace llvm;
1415
4141 #include "llvm/MC/MCAsmInfo.h"
4242 #include "llvm/Support/Debug.h"
4343 #include "llvm/Support/ErrorHandling.h"
44 #include "llvm/Support/FileSystem.h"
4445 #include "llvm/Support/raw_ostream.h"
4546 #include "llvm/Target/TargetInstrInfo.h"
4647 #include "llvm/Target/TargetMachine.h"
4545 #include "llvm/CodeGen/VirtRegMap.h"
4646 #include "llvm/IR/Module.h"
4747 #include "llvm/Support/Debug.h"
48 #include "llvm/Support/FileSystem.h"
4849 #include "llvm/Support/raw_ostream.h"
4950 #include "llvm/Target/TargetInstrInfo.h"
5051 #include "llvm/Target/TargetMachine.h"
3030 #include "llvm/PassManager.h"
3131 #include "llvm/Support/Debug.h"
3232 #include "llvm/Support/ErrorHandling.h"
33 #include "llvm/Support/FileSystem.h"
3334 #include "llvm/Support/ManagedStatic.h"
3435 #include "llvm/Support/MemoryBuffer.h"
3536 #include "llvm/Support/Threading.h"
1818 #include "llvm/MC/MCRegisterInfo.h"
1919 #include "llvm/Object/YAML.h"
2020 #include "llvm/Support/Allocator.h"
21 #include "llvm/Support/Casting.h"
2122 #include "llvm/Support/MathExtras.h"
2223 #include "llvm/Support/YAMLTraits.h"
2324 #include
3838 #include "llvm/Support/SourceMgr.h"
3939 #include "llvm/Support/raw_ostream.h"
4040 #include
41 #include
4142 #include
4243 #include
4344 #include
1616 #include "llvm/MC/MCSectionMachO.h"
1717 #include "llvm/MC/MCStreamer.h"
1818 #include "llvm/MC/MCSymbol.h"
19 #include "llvm/Support/FileSystem.h"
1920 #include "llvm/Support/MemoryBuffer.h"
2021 #include "llvm/Support/SourceMgr.h"
2122 using namespace llvm;
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Object/ELFYAML.h"
14 #include "llvm/Support/Casting.h"
1415
1516 namespace llvm {
1617
1313 #ifndef LLVM_PROFILEDATA_INSTRPROF_INDEXED_H_
1414 #define LLVM_PROFILEDATA_INSTRPROF_INDEXED_H_
1515
16 #include "llvm/Support/ErrorHandling.h"
1617 #include "llvm/Support/MD5.h"
1718
1819 namespace llvm {
1414 #include "llvm/ADT/StringMap.h"
1515 #include "llvm/Support/CommandLine.h"
1616 #include "llvm/Support/Debug.h"
17 #include "llvm/Support/FileSystem.h"
1718 #include "llvm/Support/Format.h"
1819 #include "llvm/Support/ManagedStatic.h"
1920 #include "llvm/Support/Mutex.h"
1616
1717 #include "TGParser.h"
1818 #include "llvm/Support/CommandLine.h"
19 #include "llvm/Support/FileSystem.h"
1920 #include "llvm/Support/MemoryBuffer.h"
2021 #include "llvm/Support/ToolOutputFile.h"
2122 #include "llvm/Support/system_error.h"
1717 #include "llvm/IR/Module.h"
1818 #include "llvm/PassManager.h"
1919 #include "llvm/Support/CodeGen.h"
20 #include "llvm/Support/FileSystem.h"
2021 #include "llvm/Support/FormattedStream.h"
2122 #include "llvm/Support/Host.h"
2223 #include "llvm/Support/TargetRegistry.h"
2727 #include "llvm/PassManager.h"
2828 #include "llvm/Support/CommandLine.h"
2929 #include "llvm/Support/Debug.h"
30 #include "llvm/Support/FileSystem.h"
3031 #include "llvm/Support/FormattedStream.h"
3132 #include "llvm/Support/Host.h"
3233 #include "llvm/Support/ManagedStatic.h"
2020 #include "llvm/IR/Module.h"
2121 #include "llvm/IR/Verifier.h"
2222 #include "llvm/Support/CommandLine.h"
23 #include "llvm/Support/FileSystem.h"
2324 #include "llvm/Support/ManagedStatic.h"
2425 #include "llvm/Support/PrettyStackTrace.h"
2526 #include "llvm/Support/Signals.h"
2424 #include "llvm/IR/Type.h"
2525 #include "llvm/Support/CommandLine.h"
2626 #include "llvm/Support/DataStream.h"
27 #include "llvm/Support/FileSystem.h"
2728 #include "llvm/Support/FormattedStream.h"
2829 #include "llvm/Support/ManagedStatic.h"
2930 #include "llvm/Support/MemoryBuffer.h"
2121 #include "llvm/IRReader/IRReader.h"
2222 #include "llvm/PassManager.h"
2323 #include "llvm/Support/CommandLine.h"
24 #include "llvm/Support/FileSystem.h"
2425 #include "llvm/Support/ManagedStatic.h"
2526 #include "llvm/Support/PrettyStackTrace.h"
2627 #include "llvm/Support/Regex.h"
1818 #include "llvm/IR/Verifier.h"
1919 #include "llvm/IRReader/IRReader.h"
2020 #include "llvm/Support/CommandLine.h"
21 #include "llvm/Support/FileSystem.h"
2122 #include "llvm/Support/ManagedStatic.h"
2223 #include "llvm/Support/Path.h"
2324 #include "llvm/Support/PrettyStackTrace.h"
1616 #include "llvm/LTO/LTOCodeGenerator.h"
1717 #include "llvm/LTO/LTOModule.h"
1818 #include "llvm/Support/CommandLine.h"
19 #include "llvm/Support/FileSystem.h"
1920 #include "llvm/Support/ManagedStatic.h"
2021 #include "llvm/Support/PrettyStackTrace.h"
2122 #include "llvm/Support/Signals.h"
1414 #include "llvm/ProfileData/InstrProfReader.h"
1515 #include "llvm/ProfileData/InstrProfWriter.h"
1616 #include "llvm/Support/CommandLine.h"
17 #include "llvm/Support/FileSystem.h"
1718 #include "llvm/Support/Format.h"
1819 #include "llvm/Support/ManagedStatic.h"
1920 #include "llvm/Support/MemoryBuffer.h"
2121 #include "llvm/IR/Verifier.h"
2222 #include "llvm/PassManager.h"
2323 #include "llvm/Support/Debug.h"
24 #include "llvm/Support/FileSystem.h"
2425 #include "llvm/Support/ManagedStatic.h"
2526 #include "llvm/Support/PluginLoader.h"
2627 #include "llvm/Support/PrettyStackTrace.h"
3434 #include "llvm/MC/SubtargetFeature.h"
3535 #include "llvm/PassManager.h"
3636 #include "llvm/Support/Debug.h"
37 #include "llvm/Support/FileSystem.h"
3738 #include "llvm/Support/ManagedStatic.h"
3839 #include "llvm/Support/PluginLoader.h"
3940 #include "llvm/Support/PrettyStackTrace.h"
77 //===----------------------------------------------------------------------===//
88
99 #include "llvm/LineEditor/LineEditor.h"
10 #include "llvm/Support/FileSystem.h"
1011 #include "llvm/Support/Path.h"
1112 #include "gtest/gtest.h"
1213
1313 //===----------------------------------------------------------------------===//
1414
1515 #include "llvm/Support/CommandLine.h"
16 #include "llvm/Support/FileSystem.h"
1617 #include "llvm/Support/MemoryBuffer.h"
1718 #include "llvm/Support/PrettyStackTrace.h"
1819 #include "llvm/Support/Signals.h"
1414 #include "AsmWriterInst.h"
1515 #include "CodeGenTarget.h"
1616 #include "SequenceToOffsetTable.h"
17 #include "llvm/ADT/SmallString.h"
1718 #include "llvm/ADT/StringExtras.h"
1819 #include "llvm/ADT/Twine.h"
1920 #include "llvm/Support/Debug.h"