diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-08 18:24:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-08 18:24:34 +0000 |
commit | b8e240ed8b8f58c7b7fe82776bd6147b437f5d53 (patch) | |
tree | a4e1a73dfe2a2a3531ad86e960e52f4d4c483995 /lib/Lex/PPDirectives.cpp | |
parent | 3bbc75302fd43cf13d868b46c94ff8794b302e43 (diff) |
Add initial support for -imacros. Right now it has the same semantics as
-include, but that will be fixed soon.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68625 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPDirectives.cpp')
-rw-r--r-- | lib/Lex/PPDirectives.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Lex/PPDirectives.cpp b/lib/Lex/PPDirectives.cpp index c5dc7abd08..a60d9ba4e1 100644 --- a/lib/Lex/PPDirectives.cpp +++ b/lib/Lex/PPDirectives.cpp @@ -528,8 +528,10 @@ TryAgain: // C99 6.10.2 - Source File Inclusion. case tok::pp_include: - return HandleIncludeDirective(Result); // Handle #include. - + return HandleIncludeDirective(Result); // Handle #include. + case tok::pp___include_macros: + return HandleIncludeDirective(Result); // Handle #__include_macros. + // C99 6.10.3 - Macro Replacement. case tok::pp_define: return HandleDefineDirective(Result); |