Browse Source

Fixed preprocessor creation to the newest LLVM.

We are temporarily using and old version of LLVM on VS for now.
pull/224/head
triton 12 years ago
parent
commit
92619e90ed
  1. 4
      src/CppParser/Parser.cpp

4
src/CppParser/Parser.cpp

@ -205,7 +205,11 @@ void Parser::SetupHeader() @@ -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(),

Loading…
Cancel
Save