LLVM: lib/Support/ToolOutputFile.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

16using namespace llvm;

17

19

22

25}

26

29 return;

30

31

34

35

36

38}

39

42 : Installer(Filename) {

45 EC = std::error_code();

46 return;

47 }

48 OSHolder.emplace(Filename, EC, Flags);

49 OS = &*OSHolder;

50

51 if (EC)

52 Installer.Keep = true;

53}

54

56 : Installer(Filename) {

57 OSHolder.emplace(FD, true);

58 OS = &*OSHolder;

59}

CleanupInstaller(StringRef Filename)

std::string Filename

The name of the file.

bool Keep

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

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

std::error_code remove(const Twine &path, bool IgnoreNonExisting=true)

Remove path.

void DontRemoveFileOnSignal(StringRef Filename)

This function removes a file from the list of files to be removed on signal delivery.

bool RemoveFileOnSignal(StringRef Filename, std::string *ErrMsg=nullptr)

This function registers signal handlers to ensure that if a signal gets delivered that the named file...

This is an optimization pass for GlobalISel generic memory operations.

raw_fd_ostream & outs()

This returns a reference to a raw_fd_ostream for standard output.

@ Keep

No function return thunk.

Implement std::hash so that hash_code can be used in STL containers.