diff options
author | Rui Ueyama <ruiu@google.com> | 2013-10-15 22:45:38 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-10-15 22:45:38 +0000 |
commit | b32b0376d4ac04fc2401e70aa0bdd2f6ce5a8968 (patch) | |
tree | f8585756a6c75981e5454e65418ed202fd309804 /include | |
parent | 72be32c6332ff9dd38b989d5a0dd80f40996dd10 (diff) | |
download | external_llvm-b32b0376d4ac04fc2401e70aa0bdd2f6ce5a8968.zip external_llvm-b32b0376d4ac04fc2401e70aa0bdd2f6ce5a8968.tar.gz external_llvm-b32b0376d4ac04fc2401e70aa0bdd2f6ce5a8968.tar.bz2 |
Path: Recognize Windows compiled resource file.
Some background: One can pass compiled resource files (.res files) directly
to the linker on Windows. If a resource file is given, the linker will run
"cvtres" command in background to convert the resource file to a COFF file
to link it.
What I'm trying to do with this patch is to make the linker to recognize
the resource file by file magic, so that it can run cvtres command.
Differential Revision: http://llvm-reviews.chandlerc.com/D1943
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 9d72a66..24bb8ea 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -238,7 +238,8 @@ struct file_magic { macho_dsym_companion, ///< Mach-O dSYM companion file macho_universal_binary, ///< Mach-O universal binary coff_object, ///< COFF object file - pecoff_executable ///< PECOFF executable file + pecoff_executable, ///< PECOFF executable file + windows_resource, ///< Windows compiled resource file (.rc) }; bool is_object() const { |