LLVM 22.0.0git
TarWriter.h
Go to the documentation of this file.
1//===-- llvm/Support/TarWriter.h - Tar archive file creator -----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_SUPPORT_TARWRITER_H
10#define LLVM_SUPPORT_TARWRITER_H
11
12#include "llvm/ADT/StringRef.h"
13#include "llvm/ADT/StringSet.h"
15#include "llvm/Support/Error.h"
17
18namespace llvm {
19class TarWriter {
20public:
22 create(StringRef OutputPath, StringRef BaseDir);
23
25
26private:
27 TarWriter(int FD, StringRef BaseDir);
29 std::string BaseDir;
30 StringSet<> Files;
31};
32}
33
34#endif
#define LLVM_ABI
Definition Compiler.h:213
StringSet - A set-like wrapper for the StringMap.
Tagged union holding either a T or a Error.
Definition Error.h:485
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
StringSet - A wrapper for StringMap that provides set-like functionality.
Definition StringSet.h:25
static LLVM_ABI Expected< std::unique_ptr< TarWriter > > create(StringRef OutputPath, StringRef BaseDir)
LLVM_ABI void append(StringRef Path, StringRef Data)
A raw_ostream that writes to a file descriptor.
This is an optimization pass for GlobalISel generic memory operations.
FunctionAddr VTableAddr uintptr_t uintptr_t Data
Definition InstrProf.h:189