diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-13 07:02:35 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-13 07:02:35 +0000 |
commit | b0f12dfab6b938351d373ca26c3ee56fd91fad8b (patch) | |
tree | 929f3a4ee6c178130c117b222e996c292e04dc46 /lib/Support/Path.cpp | |
parent | ec7eedc5db065b407cfb9945e2970a791a25705f (diff) |
Support: add support to identify WinCOFF/ARM objects
Add the Windows COFF ARM object file magic. This enables the LLVM tools to
interact with COFF object files for Windows on ARM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Path.cpp')
-rw-r--r-- | lib/Support/Path.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/Path.cpp b/lib/Support/Path.cpp index 6fdad22158d..895e81f4946 100644 --- a/lib/Support/Path.cpp +++ b/lib/Support/Path.cpp @@ -1016,6 +1016,7 @@ error_code has_magic(const Twine &path, const Twine &magic, bool &result) { case 0x66: // MPS R4000 Windows case 0x50: // mc68K case 0x4c: // 80386 Windows + case 0xc4: // ARMNT Windows if (Magic[1] == 0x01) return file_magic::coff_object; |