summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch')
-rw-r--r--dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch
index 4f7d3e51..497db4f5 100644
--- a/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch
+++ b/dynamic-layers/clang-layer/recipes-devtools/clang/files/llvm12-0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch
@@ -1,7 +1,7 @@
1From 06cf750d2ef892eaa4f0ff5d0a9e9e5c49697264 Mon Sep 17 00:00:00 2001 1From 60854c328d8729b2ef10b9bb4dcbcc282f43c5e7 Mon Sep 17 00:00:00 2001
2From: Raphael Isemann <teemperor@gmail.com> 2From: Raphael Isemann <teemperor@gmail.com>
3Date: Thu, 1 Apr 2021 18:41:44 +0200 3Date: Thu, 1 Apr 2021 18:41:44 +0200
4Subject: [PATCH 2/3] Avoid calling ParseCommandLineOptions in BackendUtil if 4Subject: [PATCH] Avoid calling ParseCommandLineOptions in BackendUtil if
5 possible 5 possible
6 6
7Calling `ParseCommandLineOptions` should only be called from `main` as the 7Calling `ParseCommandLineOptions` should only be called from `main` as the
@@ -20,18 +20,18 @@ Reviewed By: JDevlieghere
20 20
21Differential Revision: https://reviews.llvm.org/D99740 21Differential Revision: https://reviews.llvm.org/D99740
22 22
23Upstream-Status: Backport [Taken from opencl-clang patches; https://github.com/intel/opencl-clang/blob/ocl-open-120/patches/clang/0002-Avoid-calling-ParseCommandLineOptions-in-BackendUtil.patch] 23Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/60854c328d8729b2ef10b9bb4dcbcc282f43c5e7]
24
25Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> 24Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
25
26--- 26---
27 clang/lib/CodeGen/BackendUtil.cpp | 8 ++++++++ 27 clang/lib/CodeGen/BackendUtil.cpp | 8 ++++++++
28 1 file changed, 8 insertions(+) 28 1 file changed, 8 insertions(+)
29 29
30diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp 30diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp
31index 52bcd971dc8c..f9f891247530 100644 31index 41eafd13d97c..00d92e7beadd 100644
32--- a/clang/lib/CodeGen/BackendUtil.cpp 32--- a/clang/lib/CodeGen/BackendUtil.cpp
33+++ b/clang/lib/CodeGen/BackendUtil.cpp 33+++ b/clang/lib/CodeGen/BackendUtil.cpp
34@@ -850,7 +850,15 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts) { 34@@ -871,7 +871,15 @@ static void setCommandLineOpts(const CodeGenOptions &CodeGenOpts) {
35 BackendArgs.push_back("-limit-float-precision"); 35 BackendArgs.push_back("-limit-float-precision");
36 BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str()); 36 BackendArgs.push_back(CodeGenOpts.LimitFloatPrecision.c_str());
37 } 37 }
@@ -48,5 +48,5 @@ index 52bcd971dc8c..f9f891247530 100644
48 BackendArgs.data()); 48 BackendArgs.data());
49 } 49 }
50-- 50--
512.17.1 512.29.2
52 52