mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
System/Path: Add isObjectFile().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -342,6 +342,17 @@ namespace sys {
|
||||
/// @brief Determine if the path references a dynamic library.
|
||||
bool isDynamicLibrary() const;
|
||||
|
||||
/// This function determines if the path name in the object references a
|
||||
/// native object file by looking at it's magic number. The term object
|
||||
/// file is defined as "an organized collection of separate, named
|
||||
/// sequences of binary data." This covers the obvious file formats such as
|
||||
/// COFF and ELF, but it also includes llvm ir bitcode, archives,
|
||||
/// libraries, etc...
|
||||
/// @returns true if the file starts with the magic number for an object
|
||||
/// file.
|
||||
/// @brief Determine if the path references an object file.
|
||||
bool isObjectFile() const;
|
||||
|
||||
/// This function determines if the path name references an existing file
|
||||
/// or directory in the file system.
|
||||
/// @returns true if the pathname references an existing file or
|
||||
|
Reference in New Issue
Block a user