diff options
author | Stefan Gränitz <stefan.graenitz@gmail.com> | 2024-03-07 01:01:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 01:01:07 +0100 |
commit | 6a39a714423ba5675b9e211a80c1dae1ff0e6eac (patch) | |
tree | 7da532401fcd44650a4f559caae3ded57ac978cf /clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp | |
parent | 1a37147af5a91635e3982a9cbbdfe1d7492af84c (diff) | |
download | llvm-6a39a714423ba5675b9e211a80c1dae1ff0e6eac.zip llvm-6a39a714423ba5675b9e211a80c1dae1ff0e6eac.tar.gz llvm-6a39a714423ba5675b9e211a80c1dae1ff0e6eac.tar.bz2 |
Revert "[clang-repl] Pass triple to IncrementalCompilerBuilder as explicit argument" (#84261)
Reverts llvm/llvm-project#84174 due too sanitizer memory leak detection
Diffstat (limited to 'clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp')
-rw-r--r-- | clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp b/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp deleted file mode 100644 index 1cc0223..0000000 --- a/clang/unittests/Interpreter/IncrementalCompilerBuilderTest.cpp +++ /dev/null @@ -1,35 +0,0 @@ -//=== unittests/Interpreter/IncrementalCompilerBuilderTest.cpp ------------===// -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// - -#include "clang/Basic/TargetOptions.h" -#include "clang/Frontend/CompilerInstance.h" -#include "clang/Interpreter/Interpreter.h" -#include "llvm/Support/Error.h" -#include "gtest/gtest.h" - -using namespace llvm; -using namespace clang; - -namespace { - -TEST(IncrementalCompilerBuilder, SetCompilerArgs) { - std::vector<const char *> ClangArgv = {"-Xclang", "-ast-dump-all"}; - auto CB = clang::IncrementalCompilerBuilder(); - CB.SetCompilerArgs(ClangArgv); - auto CI = cantFail(CB.CreateCpp()); - EXPECT_TRUE(CI->getFrontendOpts().ASTDumpAll); -} - -TEST(IncrementalCompilerBuilder, SetTargetTriple) { - auto CB = clang::IncrementalCompilerBuilder(); - CB.SetTargetTriple("armv6-none-eabi"); - auto CI = cantFail(CB.CreateCpp()); - EXPECT_EQ(CI->getTargetOpts().Triple, "armv6-none-unknown-eabi"); -} - -} // end anonymous namespace |