mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 22:24:28 +00:00
add support for identifying bitcode files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -313,6 +313,13 @@ namespace sys {
|
|||||||
/// @brief Determine if the path references a bytecode file.
|
/// @brief Determine if the path references a bytecode file.
|
||||||
bool isBytecodeFile() const;
|
bool isBytecodeFile() const;
|
||||||
|
|
||||||
|
/// This function determines if the path name in the object references an
|
||||||
|
/// LLVM Bitcode file by looking at its magic number.
|
||||||
|
/// @returns true if the file starts with the magic number for LLVM
|
||||||
|
/// bitcode files.
|
||||||
|
/// @brief Determine if the path references a bitcode file.
|
||||||
|
bool isBitcodeFile() const;
|
||||||
|
|
||||||
/// This function determines if the path name in the object references a
|
/// This function determines if the path name in the object references a
|
||||||
/// native Dynamic Library (shared library, shared object) by looking at
|
/// native Dynamic Library (shared library, shared object) by looking at
|
||||||
/// the file's magic number. The Path object must reference a file, not a
|
/// the file's magic number. The Path object must reference a file, not a
|
||||||
@ -615,6 +622,7 @@ namespace sys {
|
|||||||
enum LLVMFileType {
|
enum LLVMFileType {
|
||||||
Unknown_FileType = 0, ///< Unrecognized file
|
Unknown_FileType = 0, ///< Unrecognized file
|
||||||
Bytecode_FileType, ///< Uncompressed bytecode file
|
Bytecode_FileType, ///< Uncompressed bytecode file
|
||||||
|
Bitcode_FileType, ///< Bitcode file
|
||||||
CompressedBytecode_FileType, ///< Compressed bytecode file
|
CompressedBytecode_FileType, ///< Compressed bytecode file
|
||||||
Archive_FileType, ///< ar style archive file
|
Archive_FileType, ///< ar style archive file
|
||||||
ELF_Relocatable_FileType, ///< ELF Relocatable object file
|
ELF_Relocatable_FileType, ///< ELF Relocatable object file
|
||||||
|
Reference in New Issue
Block a user