[cfe-commits] r129549 - /cfe/trunk/lib/Parse/ParsePragma.cpp

Tanya Lattner tonic at nondot.org
Thu Apr 14 16:35:31 PDT 2011


Author: tbrethou
Date: Thu Apr 14 18:35:31 2011
New Revision: 129549

URL: http://llvm.org/viewvc/llvm-project?rev=129549&view=rev
Log:
Do not expand the opencl pragma names. This is so you can also have a define named the samed as the pragma and they do not interfere (ie. cl_khr_fp64).


Modified:
    cfe/trunk/lib/Parse/ParsePragma.cpp

Modified: cfe/trunk/lib/Parse/ParsePragma.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParsePragma.cpp?rev=129549&r1=129548&r2=129549&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/ParsePragma.cpp (original)
+++ cfe/trunk/lib/Parse/ParsePragma.cpp Thu Apr 14 18:35:31 2011
@@ -387,7 +387,7 @@
 PragmaOpenCLExtensionHandler::HandlePragma(Preprocessor &PP, 
                                            PragmaIntroducerKind Introducer,
                                            Token &Tok) {
-  PP.Lex(Tok);
+  PP.LexUnexpandedToken(Tok);
   if (Tok.isNot(tok::identifier)) {
     PP.Diag(Tok.getLocation(), diag::warn_pragma_expected_identifier) <<
       "OPENCL";





More information about the cfe-commits mailing list