[cfe-commits] r67233 - /cfe/trunk/lib/Lex/PPDirectives.cpp

Chris Lattner sabre at nondot.org
Wed Mar 18 13:41:10 PDT 2009


Author: lattner
Date: Wed Mar 18 15:41:10 2009
New Revision: 67233

URL: http://llvm.org/viewvc/llvm-project?rev=67233&view=rev
Log:
This is not considered a preprocessor directive in .S files:
# 4 


Modified:
    cfe/trunk/lib/Lex/PPDirectives.cpp

Modified: cfe/trunk/lib/Lex/PPDirectives.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPDirectives.cpp?rev=67233&r1=67232&r2=67233&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/PPDirectives.cpp (original)
+++ cfe/trunk/lib/Lex/PPDirectives.cpp Wed Mar 18 15:41:10 2009
@@ -499,6 +499,8 @@
     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();





More information about the cfe-commits mailing list