From 5f607c4b75abeedded11eff079dee73561d98203 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 18 Mar 2009 20:41:10 +0000 Subject: [PATCH] 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 --- lib/Lex/PPDirectives.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.40.0