aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-18 20:41:10 +0000
committerChris Lattner <sabre@nondot.org>2009-03-18 20:41:10 +0000
commit5f607c4b75abeedded11eff079dee73561d98203 (patch)
tree8511111ab43b0c6f1a4f65a0e96a239850b65d87 /lib/Lex/PPDirectives.cpp
parent48be3801ca729cf2afea060fdb08a479b49ab440 (diff)
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
Diffstat (limited to 'lib/Lex/PPDirectives.cpp')
-rw-r--r--lib/Lex/PPDirectives.cpp2
1 files changed, 2 insertions, 0 deletions
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();