Home | History | Annotate | Download | only in Expression

Lines Matching full:m_compiler

188     m_compiler (),
204 m_compiler.reset(new CompilerInstance());
233 m_compiler->getTargetOpts().Triple = triple;
237 m_compiler->getTargetOpts().Triple = llvm::sys::getDefaultTargetTriple();
243 m_compiler->getTargetOpts().Features.push_back("+sse");
244 m_compiler->getTargetOpts().Features.push_back("+sse2");
247 if (m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos)
248 m_compiler->getTargetOpts().ABI = "apcs-gnu";
250 m_compiler->createDiagnostics();
253 m_compiler->setTarget(TargetInfo::CreateTargetInfo(m_compiler->getDiagnostics(),
254 &m_compiler->getTargetOpts()));
256 assert (m_compiler->hasTarget());
267 m_compiler->getLangOpts().ObjC1 = true;
268 m_compiler->getLangOpts().ObjC2 = true;
271 m_compiler->getLangOpts().CPlusPlus = true;
272 m_compiler->getLangOpts().CPlusPlus11 = true;
276 m_compiler->getLangOpts().ObjC1 = true;
277 m_compiler->getLangOpts().ObjC2 = true;
278 m_compiler->getLangOpts().CPlusPlus = true;
279 m_compiler->getLangOpts().CPlusPlus11 = true;
283 m_compiler->getLangOpts().Bool = true;
284 m_compiler->getLangOpts().WChar = true;
285 m_compiler->getLangOpts().Blocks = true;
286 m_compiler->getLangOpts().DebuggerSupport = true; // Features specifically for debugger clients
288 m_compiler->getLangOpts().DebuggerCastResultToId = true;
294 m_compiler->getLangOpts().SpellChecking = false;
300 if (process_sp && m_compiler->getLangOpts().ObjC1)
305 m_compiler->getLangOpts().ObjCRuntime.set(ObjCRuntime::MacOSX, VersionTuple(10, 7));
307 m_compiler->getLangOpts().ObjCRuntime.set(ObjCRuntime::FragileMacOSX, VersionTuple(10, 7));
310 m_compiler->getLangOpts().DebuggerObjCLiteral = true;
314 m_compiler->getLangOpts().ThreadsafeStatics = false;
315 m_compiler->getLangOpts().AccessControl = false; // Debuggers get universal access
316 m_compiler->getLangOpts().DollarIdents = true; // $ indicates a persistent variable name
319 m_compiler->getCodeGenOpts().EmitDeclMetadata = true;
320 m_compiler->getCodeGenOpts().InstrumentFunctions = false;
323 m_compiler->getDiagnostics().setDiagnosticGroupMapping("unused-value", clang::diag::MAP_IGNORE, SourceLocation());
324 m_compiler->getDiagnostics().setDiagnosticGroupMapping("odr", clang::diag::MAP_IGNORE, SourceLocation());
330 m_compiler->getTarget().setForcedLangOptions(m_compiler->getLangOpts());
334 m_compiler->getDiagnostics().setClient(new clang::TextDiagnosticBuffer);
341 if (!m_compiler->hasSourceManager())
342 m_compiler->createSourceManager(*m_file_manager.get());
344 m_compiler->createFileManager();
345 m_compiler->createPreprocessor();
352 std::unique_ptr<clang::ASTContext> ast_context(new ASTContext(m_compiler->getLangOpts(),
353 m_compiler->getSourceManager(),
354 &m_compiler->getTarget(),
355 m_compiler->getPreprocessor().getIdentifierTable(),
369 m_compiler->setASTContext(ast_context.release());
374 m_code_generator.reset(CreateLLVMCodeGen(m_compiler->getDiagnostics(),
376 m_compiler->getCodeGenOpts(),
377 m_compiler->getTargetOpts(),
388 TextDiagnosticBuffer *diag_buf = static_cast<TextDiagnosticBuffer*>(m_compiler->getDiagnostics().getClient());
390 diag_buf->FlushDiagnostics (m_compiler->getDiagnostics());
393 m_compiler->getSourceManager().createMainFileIDForMemBuffer (memory_buffer);
395 diag_buf->BeginSourceFile(m_compiler->getLangOpts(), &m_compiler->getPreprocessor());
400 ParseAST(m_compiler->getPreprocessor(), ast_transformer, m_compiler->getASTContext());
402 ParseAST(m_compiler->getPreprocessor(), m_code_generator.get(), m_compiler->getASTContext());
505 m_compiler->getTargetOpts().Features));