LLVM  3.7.0
ArchiveWriter.h
Go to the documentation of this file.
1 //===- ArchiveWriter.h - ar archive file format writer ----------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Declares the writeArchive function for writing an archive file.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_OBJECT_ARCHIVEWRITER_H
15 #define LLVM_OBJECT_ARCHIVEWRITER_H
16 
17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/Object/Archive.h"
20 
21 namespace llvm {
22 
24  bool IsNewMember;
25  StringRef Name;
26 
28 
29  StringRef NewFilename;
30 
31 public:
34  bool isNewMember() const;
35  StringRef getName() const;
36 
38 
39  StringRef getNew() const;
41  const sys::fs::file_status &getStatus() const;
42 };
43 
44 std::pair<StringRef, std::error_code>
45 writeArchive(StringRef ArcName, std::vector<NewArchiveIterator> &NewMembers,
46  bool WriteSymtab, object::Archive::Kind Kind, bool Deterministic);
47 }
48 
49 #endif
std::pair< StringRef, std::error_code > writeArchive(StringRef ArcName, std::vector< NewArchiveIterator > &NewMembers, bool WriteSymtab, object::Archive::Kind Kind, bool Deterministic)
Represents either an error or a value T.
Definition: ErrorOr.h:82
llvm::ErrorOr< int > getFD(sys::fs::file_status &NewStatus) const
file_status - Represents the result of a call to stat and friends.
Definition: FileSystem.h:138
object::Archive::child_iterator getOld() const
NewArchiveIterator(object::Archive::child_iterator I, StringRef Name)
const sys::fs::file_status & getStatus() const
StringRef getName() const
#define I(x, y, z)
Definition: MD5.cpp:54
StringRef getNew() const
const ARM::ArchExtKind Kind
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:40