diff options
author | Chris Lattner <sabre@nondot.org> | 2009-03-23 16:24:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-03-23 16:24:37 +0000 |
commit | d9cd4c947d9dc50907d7c318def665362955c38a (patch) | |
tree | 719e4afe8063916e1054d85ce41a044ded7cbce6 /Driver/clang.cpp | |
parent | 38179b29df101e3f55dbdff4d15d4d55cd82e2bd (diff) |
if the driver decides to run clang on a .s file, treat it as a .S file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 160c252304..2ae1b6ec73 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -322,7 +322,9 @@ static LangKind GetLanguage(const std::string &Filename) { // assembler: .S if (Ext == "c") return langkind_c; - else if (Ext == "S") + else if (Ext == "S" || + // If the compiler is run on a .s file, preprocess it as .S + Ext == "s") return langkind_asm_cpp; else if (Ext == "i") return langkind_c_cpp; |