From 92619e90ed0604541daee51557ad6a3b28c0b177 Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 15 Apr 2014 00:00:01 +0100 Subject: [PATCH] Fixed preprocessor creation to the newest LLVM. We are temporarily using and old version of LLVM on VS for now. --- src/CppParser/Parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CppParser/Parser.cpp b/src/CppParser/Parser.cpp index 65242002..aa0fe6b6 100644 --- a/src/CppParser/Parser.cpp +++ b/src/CppParser/Parser.cpp @@ -205,7 +205,11 @@ void Parser::SetupHeader() // Enable preprocessing record. PPOpts.DetailedRecord = true; +#ifdef _MSC_VER C->createPreprocessor(); +#else + C->createPreprocessor(TU_Complete); +#endif Preprocessor& PP = C->getPreprocessor(); PP.getBuiltinInfo().InitializeBuiltins(PP.getIdentifierTable(),