From: Chris Lattner Date: Wed, 18 Mar 2009 20:41:10 +0000 (+0000) Subject: This is not considered a preprocessor directive in .S files: X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f607c4b75abeedded11eff079dee73561d98203;p=clang This is not considered a preprocessor directive in .S files: # 4 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67233 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PPDirectives.cpp b/lib/Lex/PPDirectives.cpp index 5a4d2ee15e..8e76b920aa 100644 --- a/lib/Lex/PPDirectives.cpp +++ b/lib/Lex/PPDirectives.cpp @@ -499,6 +499,8 @@ TryAgain: goto TryAgain; case tok::numeric_constant: // # 7 GNU line marker directive. + if (getLangOptions().AsmPreprocessor) + break; // # 4 is not a preprocessor directive in .S files. return HandleDigitDirective(Result); default: IdentifierInfo *II = Result.getIdentifierInfo();