static void HandleExtern(SessionContext &S) { if (auto P = ParseExtern()) S.addPrototypeAST(std::move(P)); else { // Skip token for error recovery. getNextToken(); } }
static void HandleDefinition(SessionContext &S, KaleidoscopeJIT &J) { if (auto F = ParseDefinition()) { S.addPrototypeAST(llvm::make_unique<PrototypeAST>(*F->Proto)); J.addFunctionAST(std::move(F)); } else { // Skip token for error recovery. getNextToken(); } }