Skip to content

Commit 1a7e7ef

Browse files
committed
Format BackendUtil.h. NFC
Prepare for a -ftime-report change that adds a forward declaration and changes the signature of EmitBackendOutput.
1 parent 6dd1315 commit 1a7e7ef

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

clang/include/clang/CodeGen/BackendUtil.h

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,46 @@
1414
#include <memory>
1515

1616
namespace llvm {
17-
class BitcodeModule;
18-
template <typename T> class Expected;
19-
template <typename T> class IntrusiveRefCntPtr;
20-
class Module;
21-
class MemoryBufferRef;
22-
namespace vfs {
23-
class FileSystem;
24-
} // namespace vfs
25-
}
17+
class BitcodeModule;
18+
template <typename T> class Expected;
19+
template <typename T> class IntrusiveRefCntPtr;
20+
class Module;
21+
class MemoryBufferRef;
22+
namespace vfs {
23+
class FileSystem;
24+
} // namespace vfs
25+
} // namespace llvm
2626

2727
namespace clang {
28-
class DiagnosticsEngine;
29-
class HeaderSearchOptions;
30-
class CodeGenOptions;
31-
class TargetOptions;
32-
class LangOptions;
33-
class BackendConsumer;
34-
35-
enum BackendAction {
36-
Backend_EmitAssembly, ///< Emit native assembly files
37-
Backend_EmitBC, ///< Emit LLVM bitcode files
38-
Backend_EmitLL, ///< Emit human-readable LLVM assembly
39-
Backend_EmitNothing, ///< Don't emit anything (benchmarking mode)
40-
Backend_EmitMCNull, ///< Run CodeGen, but don't emit anything
41-
Backend_EmitObj ///< Emit native object files
42-
};
43-
44-
void EmitBackendOutput(DiagnosticsEngine &Diags, const HeaderSearchOptions &,
45-
const CodeGenOptions &CGOpts,
46-
const TargetOptions &TOpts, const LangOptions &LOpts,
47-
StringRef TDesc, llvm::Module *M, BackendAction Action,
48-
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
49-
std::unique_ptr<raw_pwrite_stream> OS,
50-
BackendConsumer *BC = nullptr);
51-
52-
void EmbedBitcode(llvm::Module *M, const CodeGenOptions &CGOpts,
53-
llvm::MemoryBufferRef Buf);
54-
55-
void EmbedObject(llvm::Module *M, const CodeGenOptions &CGOpts,
56-
DiagnosticsEngine &Diags);
57-
}
28+
class DiagnosticsEngine;
29+
class HeaderSearchOptions;
30+
class CodeGenOptions;
31+
class TargetOptions;
32+
class LangOptions;
33+
class BackendConsumer;
34+
35+
enum BackendAction {
36+
Backend_EmitAssembly, ///< Emit native assembly files
37+
Backend_EmitBC, ///< Emit LLVM bitcode files
38+
Backend_EmitLL, ///< Emit human-readable LLVM assembly
39+
Backend_EmitNothing, ///< Don't emit anything (benchmarking mode)
40+
Backend_EmitMCNull, ///< Run CodeGen, but don't emit anything
41+
Backend_EmitObj ///< Emit native object files
42+
};
43+
44+
void EmitBackendOutput(DiagnosticsEngine &Diags, const HeaderSearchOptions &,
45+
const CodeGenOptions &CGOpts, const TargetOptions &TOpts,
46+
const LangOptions &LOpts, StringRef TDesc,
47+
llvm::Module *M, BackendAction Action,
48+
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS,
49+
std::unique_ptr<raw_pwrite_stream> OS,
50+
BackendConsumer *BC = nullptr);
51+
52+
void EmbedBitcode(llvm::Module *M, const CodeGenOptions &CGOpts,
53+
llvm::MemoryBufferRef Buf);
54+
55+
void EmbedObject(llvm::Module *M, const CodeGenOptions &CGOpts,
56+
DiagnosticsEngine &Diags);
57+
} // namespace clang
5858

5959
#endif

0 commit comments

Comments
 (0)