From 7fcf4081895159a7e4b1378a23345aa421978b11 Mon Sep 17 00:00:00 2001 From: Ilia Filippov Date: Wed, 19 Feb 2014 19:02:56 +0400 Subject: [PATCH] support of LLVM trunk after 201618 revision 'VirtualFileSystem' --- module.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module.cpp b/module.cpp index 94682dc0..5629010f 100644 --- a/module.cpp +++ b/module.cpp @@ -1979,6 +1979,9 @@ void Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostream) const { clang::CompilerInstance inst; +#if defined(LLVM_3_5) + inst.createVirtualFileSystem(); +#endif inst.createFileManager(); llvm::raw_fd_ostream stderrRaw(2, false);