summaryrefslogtreecommitdiff
path: root/lib/Driver/Types.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2013-10-17 20:41:18 +0000
committerHans Wennborg <hans@hanshq.net>2013-10-17 20:41:18 +0000
commit4d612807447579d071b67568836de40fc1a1ed91 (patch)
tree0f3635b4c0032ee5a39c9ebbf1f973620ce1ad48 /lib/Driver/Types.cpp
parentbb81f880aa77cfd09dedfc72a9b87262889ae75c (diff)
downloadclang-4d612807447579d071b67568836de40fc1a1ed91.tar.gz
Make .asm a valid extension for assembly files
This is a common extension on Windows, and now clang will assemble them instead of treating them as linker input which is the default for unknown file types. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Types.cpp')
-rw-r--r--lib/Driver/Types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Driver/Types.cpp b/lib/Driver/Types.cpp
index 3b353041b2..d947ae7c03 100644
--- a/lib/Driver/Types.cpp
+++ b/lib/Driver/Types.cpp
@@ -139,6 +139,7 @@ types::ID types::lookupTypeForExtension(const char *Ext) {
.Case("f", TY_PP_Fortran)
.Case("F", TY_Fortran)
.Case("s", TY_PP_Asm)
+ .Case("asm", TY_PP_Asm)
.Case("S", TY_Asm)
.Case("o", TY_Object)
.Case("obj", TY_Object)