Author: Purva-Chaudhari Date: 2022-08-02T12:29:26+05:30 New Revision: 168d4e2945a9d3ba2aa88aad65e0a15bddcf7e58
URL: https://github.com/llvm/llvm-project/commit/168d4e2945a9d3ba2aa88aad65e0a15bddcf7e58 DIFF: https://github.com/llvm/llvm-project/commit/168d4e2945a9d3ba2aa88aad65e0a15bddcf7e58.diff LOG: Handles failing driver tests of clang Added support for incremental mode 8 and 28 ie. `frontend::EmitBC:` and `frontend::PrintPreprocessedInput:` Added supporting clang tests to test in clang-repl mode Reviewed By: v.g.vassilev Differential Revision: https://reviews.llvm.org/D125946 Added: clang/test/Interpreter/incremental-mode.cpp Modified: clang/lib/Interpreter/IncrementalParser.cpp Removed: ################################################################################ diff --git a/clang/lib/Interpreter/IncrementalParser.cpp b/clang/lib/Interpreter/IncrementalParser.cpp index db854c4161b4f..32eeb1be788a2 100644 --- a/clang/lib/Interpreter/IncrementalParser.cpp +++ b/clang/lib/Interpreter/IncrementalParser.cpp @@ -69,8 +69,12 @@ class IncrementalAction : public WrapperFrontendAction { LLVM_FALLTHROUGH; case frontend::EmitAssembly: LLVM_FALLTHROUGH; + case frontend::EmitBC: + LLVM_FALLTHROUGH; case frontend::EmitObj: LLVM_FALLTHROUGH; + case frontend::PrintPreprocessedInput: + LLVM_FALLTHROUGH; case frontend::EmitLLVMOnly: Act.reset(new EmitLLVMOnlyAction(&LLVMCtx)); break; diff --git a/clang/test/Interpreter/incremental-mode.cpp b/clang/test/Interpreter/incremental-mode.cpp new file mode 100644 index 0000000000000..e6350d237ef57 --- /dev/null +++ b/clang/test/Interpreter/incremental-mode.cpp @@ -0,0 +1,3 @@ +// RUN: clang-repl -Xcc -E +// RUN: clang-repl -Xcc -emit-llvm +// expected-no-diagnostics _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits