1 //===-- llvm/Support/TarWriter.h - Tar archive file creator -----*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_SUPPORT_TAR_WRITER_H
11 #define LLVM_SUPPORT_TAR_WRITER_H
13 #include "llvm/ADT/StringRef.h"
14 #include "llvm/Support/Error.h"
15 #include "llvm/Support/raw_ostream.h"
20 static Expected<std::unique_ptr<TarWriter>> create(StringRef OutputPath,
23 void append(StringRef Path, StringRef Data);
26 TarWriter(int FD, StringRef BaseDir);