diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-15 22:45:45 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-09-15 22:45:45 +0000 |
commit | 8a26f818896c6a02ebdb11d624cb9ef39f082df2 (patch) | |
tree | dc91e85ae2647c9a957e936c516788ed5a02831c /include/llvm/System | |
parent | 765c4d947791c6d92532ff81b6d9649e237b2084 (diff) | |
download | external_llvm-8a26f818896c6a02ebdb11d624cb9ef39f082df2.zip external_llvm-8a26f818896c6a02ebdb11d624cb9ef39f082df2.tar.gz external_llvm-8a26f818896c6a02ebdb11d624cb9ef39f082df2.tar.bz2 |
System/Path: Add isObjectFile().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Path.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 23b18d4..27fa2c3 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -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 |