summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-08 18:24:34 +0000
committerChris Lattner <sabre@nondot.org>2009-04-08 18:24:34 +0000
commit14a7f39733d7712319be4cd0967e47a5e87507a8 (patch)
tree93393b4ab2f9ecfe77a73f5fa84c79c7c66b3a3b /clang/lib/Lex
parent17ddaa677eb84ecc6d91f50f8692bc43513d3aab (diff)
downloadbcm5719-llvm-14a7f39733d7712319be4cd0967e47a5e87507a8.tar.gz
bcm5719-llvm-14a7f39733d7712319be4cd0967e47a5e87507a8.zip
Add initial support for -imacros. Right now it has the same semantics as
-include, but that will be fixed soon. llvm-svn: 68625
Diffstat (limited to 'clang/lib/Lex')
-rw-r--r--clang/lib/Lex/PPDirectives.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index c5dc7abd08b..a60d9ba4e1f 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud