ArchiveInternals.h (193323) | ArchiveInternals.h (195340) |
---|---|
1//===-- lib/Archive/ArchiveInternals.h -------------------------*- 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//===----------------------------------------------------------------------===// --- 17 unchanged lines hidden (view full) --- 26#define ARFILE_LLVM_SYMTAB_NAME "#_LLVM_SYM_TAB_#" ///< LLVM symtab entry name 27#define ARFILE_BSD4_SYMTAB_NAME "__.SYMDEF SORTED" ///< BSD4 symtab entry name 28#define ARFILE_STRTAB_NAME "// " ///< Name of string table 29#define ARFILE_PAD "\n" ///< inter-file align padding 30#define ARFILE_MEMBER_MAGIC "`\n" ///< fmag field magic # 31 32namespace llvm { 33 | 1//===-- lib/Archive/ArchiveInternals.h -------------------------*- 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//===----------------------------------------------------------------------===// --- 17 unchanged lines hidden (view full) --- 26#define ARFILE_LLVM_SYMTAB_NAME "#_LLVM_SYM_TAB_#" ///< LLVM symtab entry name 27#define ARFILE_BSD4_SYMTAB_NAME "__.SYMDEF SORTED" ///< BSD4 symtab entry name 28#define ARFILE_STRTAB_NAME "// " ///< Name of string table 29#define ARFILE_PAD "\n" ///< inter-file align padding 30#define ARFILE_MEMBER_MAGIC "`\n" ///< fmag field magic # 31 32namespace llvm { 33 |
34 class LLVMContext; 35 |
|
34 /// The ArchiveMemberHeader structure is used internally for bitcode 35 /// archives. 36 /// The header precedes each file member in the archive. This structure is 37 /// defined using character arrays for direct and correct interpretation 38 /// regardless of the endianess of the machine that produced it. 39 /// @brief Archive File Member Header 40 class ArchiveMemberHeader { 41 /// @name Data --- 24 unchanged lines hidden (view full) --- 66 67 bool checkSignature() { 68 return 0 == memcmp(fmag, ARFILE_MEMBER_MAGIC,2); 69 } 70 }; 71 72 // Get just the externally visible defined symbols from the bitcode 73 bool GetBitcodeSymbols(const sys::Path& fName, | 36 /// The ArchiveMemberHeader structure is used internally for bitcode 37 /// archives. 38 /// The header precedes each file member in the archive. This structure is 39 /// defined using character arrays for direct and correct interpretation 40 /// regardless of the endianess of the machine that produced it. 41 /// @brief Archive File Member Header 42 class ArchiveMemberHeader { 43 /// @name Data --- 24 unchanged lines hidden (view full) --- 68 69 bool checkSignature() { 70 return 0 == memcmp(fmag, ARFILE_MEMBER_MAGIC,2); 71 } 72 }; 73 74 // Get just the externally visible defined symbols from the bitcode 75 bool GetBitcodeSymbols(const sys::Path& fName, |
76 LLVMContext& Context, |
|
74 std::vector<std::string>& symbols, 75 std::string* ErrMsg); 76 77 ModuleProvider* GetBitcodeSymbols(const unsigned char*Buffer,unsigned Length, 78 const std::string& ModuleID, | 77 std::vector<std::string>& symbols, 78 std::string* ErrMsg); 79 80 ModuleProvider* GetBitcodeSymbols(const unsigned char*Buffer,unsigned Length, 81 const std::string& ModuleID, |
82 LLVMContext& Context, |
|
79 std::vector<std::string>& symbols, 80 std::string* ErrMsg); 81} 82 83#endif 84 85// vim: sw=2 ai | 83 std::vector<std::string>& symbols, 84 std::string* ErrMsg); 85} 86 87#endif 88 89// vim: sw=2 ai |