Lines Matching refs:TheModule
58 std::unique_ptr<llvm::Module> TheModule; member in clang::BackendConsumer
86 std::unique_ptr<llvm::Module> takeModule() { return std::move(TheModule); } in takeModule()
106 TheModule.reset(Gen->GetModule()); in Initialize()
154 if (!TheModule) in HandleTranslationUnit()
163 TheModule.release(); in HandleTranslationUnit()
167 assert(TheModule.get() == M && in HandleTranslationUnit()
172 LLVMContext &Ctx = TheModule->getContext(); in HandleTranslationUnit()
193 TheModule.get(), Action, AsmOutStream); in HandleTranslationUnit()
633 TheModule.reset(); in ~CodeGenAction()
650 TheModule = BEConsumer->takeModule(); in EndSourceFileAction()
654 return std::move(TheModule); in takeModule()
753 TheModule = parseIR(MainFile->getMemBufferRef(), Err, *VMContext); in ExecuteAction()
754 if (!TheModule) { in ExecuteAction()
777 if (TheModule->getTargetTriple() != TargetOpts.Triple) { in ExecuteAction()
781 TheModule->setTargetTriple(TargetOpts.Triple); in ExecuteAction()
785 TheModule->getContext().diagnose(DI); in ExecuteAction()
809 renameModuleForThinLTO(std::move(TheModule), Index.get()); in ExecuteAction()
813 TheModule = std::move(RenamedModule); in ExecuteAction()
816 LLVMContext &Ctx = TheModule->getContext(); in ExecuteAction()
820 TheModule.get(), BA, OS, std::move(Index)); in ExecuteAction()