LLVM API Documentation

ArchiveInternals.h File Reference

#include "llvm/Bitcode/Archive.h"
#include "llvm/System/TimeValue.h"
#include "llvm/ADT/StringExtras.h"
#include <cstring>

Include dependency graph for ArchiveInternals.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  llvm

Classes

class  llvm::ArchiveMemberHeader
 Archive File Member Header. More...

Defines

#define ARFILE_MAGIC   "!<arch>\n"
 magic string
#define ARFILE_MAGIC_LEN   (sizeof(ARFILE_MAGIC)-1)
 length of magic string
#define ARFILE_SVR4_SYMTAB_NAME   "/ "
 SVR4 symtab entry name.
#define ARFILE_LLVM_SYMTAB_NAME   "#_LLVM_SYM_TAB_#"
 LLVM symtab entry name.
#define ARFILE_BSD4_SYMTAB_NAME   "__.SYMDEF SORTED"
 BSD4 symtab entry name.
#define ARFILE_STRTAB_NAME   "// "
 Name of string table.
#define ARFILE_PAD   "\n"
 inter-file align padding
#define ARFILE_MEMBER_MAGIC   "`\n"
 fmag field magic #

Functions

bool llvm::GetBitcodeSymbols (const sys::Path &fName, std::vector< std::string > &symbols, std::string *ErrMsg)
ModuleProvider * llvm::GetBitcodeSymbols (const unsigned char *BufPtr, unsigned Length, const std::string &ModuleID, std::vector< std::string > &symbols, std::string *ErrMsg)


Define Documentation

#define ARFILE_BSD4_SYMTAB_NAME   "__.SYMDEF SORTED"

BSD4 symtab entry name.

Definition at line 27 of file ArchiveInternals.h.

Referenced by llvm::Archive::fillHeader(), llvm::Archive::parseMemberHeader(), and llvm::ArchiveMember::replaceWith().

#define ARFILE_LLVM_SYMTAB_NAME   "#_LLVM_SYM_TAB_#"

#define ARFILE_MAGIC   "!<arch>\n"

magic string

Definition at line 23 of file ArchiveInternals.h.

Referenced by llvm::Archive::checkSignature(), and llvm::Archive::writeToDisk().

#define ARFILE_MAGIC_LEN   (sizeof(ARFILE_MAGIC)-1)

length of magic string

Definition at line 24 of file ArchiveInternals.h.

#define ARFILE_MEMBER_MAGIC   "`\n"

fmag field magic #

Definition at line 30 of file ArchiveInternals.h.

Referenced by llvm::ArchiveMemberHeader::checkSignature().

#define ARFILE_PAD   "\n"

inter-file align padding

Definition at line 29 of file ArchiveInternals.h.

Referenced by llvm::Archive::writeMember(), and llvm::Archive::writeSymbolTable().

#define ARFILE_STRTAB_NAME   "// "

Name of string table.

Definition at line 28 of file ArchiveInternals.h.

Referenced by llvm::Archive::fillHeader(), llvm::Archive::parseMemberHeader(), and llvm::ArchiveMember::replaceWith().

#define ARFILE_SVR4_SYMTAB_NAME   "/ "

SVR4 symtab entry name.

Definition at line 25 of file ArchiveInternals.h.

Referenced by llvm::Archive::fillHeader(), llvm::Archive::parseMemberHeader(), and llvm::ArchiveMember::replaceWith().