LLVM: include/llvm/Support/ToolOutputFile.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_SUPPORT_TOOLOUTPUTFILE_H

14#define LLVM_SUPPORT_TOOLOUTPUTFILE_H

15

18#include

19

20namespace llvm {

21

23public:

24

26

27

29

33};

34

35

36

37

38

39

41

42

43

44

46

47

48

49 std::optional<raw_fd_ostream> OSHolder;

50

51

53

54public:

55

56

59

61

62

64

65

67

68

69

70 void keep() { Installer.Keep = true; }

71

72 const std::string &outputFilename() { return Installer.Filename; }

73};

74

75}

76

77#endif

Definition ToolOutputFile.h:22

LLVM_ABI ~CleanupInstaller()

StringRef getFilename()

Definition ToolOutputFile.h:30

LLVM_ABI CleanupInstaller(StringRef Filename)

std::string Filename

The name of the file.

Definition ToolOutputFile.h:25

bool Keep

The flag which indicates whether we should not delete the file.

Definition ToolOutputFile.h:28

StringRef - Represent a constant reference to a string, i.e.

A raw_ostream that writes to a file descriptor.

This is an optimization pass for GlobalISel generic memory operations.