aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Interpreter/Interpreter.cpp
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2022-06-29 22:30:56 +0200
committerJonas Hahnfeld <hahnjo@hahnjo.de>2022-06-30 21:25:14 +0200
commitf22795de683d571bbf7e655a7b4ed5ccda186e66 (patch)
treef0c58e1d51b81d89336bce71f264a3bf5a7b8609 /clang/lib/Interpreter/Interpreter.cpp
parent9b6bb12b85846e8337f8ff75aebd4e9798b56bdd (diff)
downloadllvm-f22795de683d571bbf7e655a7b4ed5ccda186e66.zip
llvm-f22795de683d571bbf7e655a7b4ed5ccda186e66.tar.gz
llvm-f22795de683d571bbf7e655a7b4ed5ccda186e66.tar.bz2
[Interpreter] Pass target features to JIT
This is required to support RISC-V where the '+d' target feature indicates the presence of the D instruction set extension, which changes to the Hard-float 'd' ABI. Differential Revision: https://reviews.llvm.org/D128853
Diffstat (limited to 'clang/lib/Interpreter/Interpreter.cpp')
-rw-r--r--clang/lib/Interpreter/Interpreter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index a10eb79..0191ad7 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -213,10 +213,10 @@ Interpreter::Parse(llvm::StringRef Code) {
llvm::Error Interpreter::Execute(PartialTranslationUnit &T) {
assert(T.TheModule);
if (!IncrExecutor) {
- const llvm::Triple &Triple =
- getCompilerInstance()->getASTContext().getTargetInfo().getTriple();
+ const clang::TargetInfo &TI =
+ getCompilerInstance()->getASTContext().getTargetInfo();
llvm::Error Err = llvm::Error::success();
- IncrExecutor = std::make_unique<IncrementalExecutor>(*TSCtx, Err, Triple);
+ IncrExecutor = std::make_unique<IncrementalExecutor>(*TSCtx, Err, TI);
if (Err)
return Err;