Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package llvm21 for openSUSE:Factory checked 
in at 2026-01-27 16:06:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/llvm21 (Old)
 and      /work/SRC/openSUSE:Factory/.llvm21.new.1928 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "llvm21"

Tue Jan 27 16:06:30 2026 rev:10 rq:1329145 version:21.1.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/llvm21/llvm21.changes    2026-01-18 
22:18:29.694698582 +0100
+++ /work/SRC/openSUSE:Factory/.llvm21.new.1928/llvm21.changes  2026-01-27 
16:06:33.455599887 +0100
@@ -1,0 +2,10 @@
+Sun Jan 25 14:55:00 UTC 2026 - Aaron Puchert <[email protected]>
+
+- Add bolt-link-shared-library.patch: link bolt with libLLVM.so.
+
+-------------------------------------------------------------------
+Fri Jan 16 10:44:40 UTC 2026 - Guillaume GARDET <[email protected]>
+
+- Enable build of bolt
+
+-------------------------------------------------------------------

New:
----
  bolt-21.1.8.src.tar.xz
  bolt-21.1.8.src.tar.xz.sig
  bolt-link-shared-library.patch

----------(New B)----------
  New:
- Add bolt-link-shared-library.patch: link bolt with libLLVM.so.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ llvm21.spec ++++++
--- /var/tmp/diff_new_pack.IQMRrb/_old  2026-01-27 16:06:36.011707880 +0100
+++ /var/tmp/diff_new_pack.IQMRrb/_new  2026-01-27 16:06:36.011707880 +0100
@@ -60,6 +60,12 @@
 %bcond_with lldb_python
 %endif
 
+%ifarch aarch64 x86_64
+%bcond_without bolt
+%else
+%bcond_with bolt
+%endif
+
 %ifarch %{arm} aarch64 %{ix86} loongarch64 ppc64le riscv64 s390x x86_64
 %bcond_without thin_lto
 %else
@@ -298,11 +304,21 @@
     lldb-instr \
     lldb-server
 %endif
+%if %{with bolt}
+%global bolt_ua_anchor llvm-bolt
+%global bolt_binfiles \
+    llvm-boltdiff \
+    llvm-bolt-binary-analysis \
+    llvm-bolt-heatmap \
+    merge-fdata \
+    perf2bolt
+%endif
 %global binfiles \
     %{llvm_ua_anchor} %{llvm_tools} %{llvm_elf_dwarf_tools} \
     %{llvm_abi_coff_macho_tools} %{llvm_instr_devel_tools} \
     %{clang_ua_anchor} %{clang_binfiles} %{clang_tools_extra_binfiles} \
-    %{?lld_ua_anchor} %{?lld_binfiles} %{?lldb_ua_anchor} %{?lldb_binfiles}
+    %{?lld_ua_anchor} %{?lld_binfiles} %{?lldb_ua_anchor} %{?lldb_binfiles} \
+    %{?bolt_ua_anchor} %{?bolt_binfiles}
 
 %global llvm_man \
 %{comment Optimizer, compiler, interpreter, linker} \
@@ -394,7 +410,8 @@
 Source12:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/third-party-%{_version}.src.tar.xz
 # Only header files should be used. 
(https://discourse.llvm.org/t/rfc-project-hand-in-hand-llvm-libc-libc-code-sharing/77701)
 Source13:       libc-%{_version}.src.tar.xz
-Source14:       
https://github.com/llvm/llvm-project/raw/llvmorg-%{_version}/libunwind/include/mach-o/compact_unwind_encoding.h
+Source14:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/bolt-%{_version}.src.tar.xz
+Source15:       
https://github.com/llvm/llvm-project/raw/llvmorg-%{_version}/libunwind/include/mach-o/compact_unwind_encoding.h
 Source29:       https://releases.llvm.org/release-keys.asc#/%{name}.keyring
 Source30:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/llvm-%{_version}.src.tar.xz.sig
 Source31:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/cmake-%{_version}.src.tar.xz.sig
@@ -409,6 +426,7 @@
 Source40:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/polly-%{_version}.src.tar.xz.sig
 Source41:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/runtimes-%{_version}.src.tar.xz.sig
 Source42:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/third-party-%{_version}.src.tar.xz.sig
+Source44:       
https://github.com/llvm/llvm-project/releases/download/llvmorg-%{_version}/bolt-%{_version}.src.tar.xz.sig
 # Docs are created manually, see below
 Source50:       llvm-docs-%{_version}.src.tar.xz
 Source51:       clang-docs-%{_version}.src.tar.xz
@@ -449,6 +467,8 @@
 Patch28:        llvm-fix-cov-test-i586.patch
 # PATCH-FIX-UPSTREAM Don't run distro detection for Android target
 Patch29:        clang-getdistro-android.patch
+# PATCH-FIX-UPSTREAM (?) Link bolt with libLLVM.so
+Patch30:        bolt-link-shared-library.patch
 BuildRequires:  %{python_pkg}-base >= 3.8
 BuildRequires:  binutils-devel >= 2.21.90
 BuildRequires:  cmake >= 3.13.4
@@ -849,6 +869,18 @@
 
 %endif
 
+%package bolt
+Summary:        A post-link optimizer developed to speed up large applications
+License:        Apache-2.0 WITH LLVM-exception
+URL:            https://github.com/llvm/llvm-project/tree/main/bolt
+# As hinted by bolt documentation
+Suggests:       gperftools-devel
+
+%description bolt
+BOLT is a post-link optimizer developed to speed up large applications.
+It achieves the improvements by optimizing application's code layout based on
+execution profile gathered by sampling profiler, such as Linux `perf` tool.
+
 %if %{with polly}
 %package polly
 Summary:        LLVM Framework for High-Level Loop and Data-Locality 
Optimizations
@@ -878,7 +910,7 @@
 %endif
 
 %prep
-%setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 
-b 50 -b 51 -n llvm-%{_version}.src
+%setup -q -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 
-a 14 -b 50 -b 51 -n llvm-%{_version}.src
 %patch -P 0 -p2
 %patch -P 1 -p2
 %patch -P 13 -p1
@@ -890,6 +922,7 @@
 %patch -P 24 -p1
 %patch -P 25 -p2
 %patch -P 28 -p2
+%patch -P 30 -p1
 
 pushd clang-%{_version}.src
 %patch -P 2 -p1
@@ -919,7 +952,7 @@
 pushd lld-%{_version}.src
 # lld got a compile-time dependency on libunwind that we don't want. 
(https://reviews.llvm.org/D86805)
 mkdir include/mach-o
-cp %{SOURCE14} include/mach-o
+cp %{SOURCE15} include/mach-o
 popd
 
 %if %{with lldb}
@@ -959,6 +992,10 @@
 mv lldb-%{_version}.src tools/lldb
 %endif
 
+%if %{with bolt}
+mv bolt-%{_version}.src tools/bolt
+%endif
+
 %if %{with openmp}
 mv openmp-%{_version}.src projects/openmp
 %endif
@@ -1598,6 +1635,15 @@
 %{ua_remove %lldb_ua_anchor}
 %endif
 
+%if %{with bolt}
+%post bolt
+%{ua_install %bolt_ua_anchor} \
+    %{lapply -p ua_bin_slave %bolt_binfiles}
+
+%postun bolt
+%{ua_remove %bolt_ua_anchor}
+%endif
+
 %global bin_path() \
 %{_bindir}/%1
 %global bin_sonum_path() \
@@ -1854,6 +1900,15 @@
 %{_libdir}/liblldbIntelFeatures.so
 %endif
 
+%if %{with bolt}
+%files bolt
+%license CREDITS.TXT LICENSE.TXT
+%{lapply -p bin_path %bolt_ua_anchor %bolt_binfiles}
+%{lapply -p bin_sonum_path %bolt_ua_anchor %bolt_binfiles}
+%{lapply -p ghost_ua_bin_link %bolt_ua_anchor %bolt_binfiles}
+%{_libdir}/libbolt_rt_*.a
+%endif
+
 %if %{with polly}
 %files polly
 %license CREDITS.TXT LICENSE.TXT

++++++ bolt-link-shared-library.patch ++++++
>From a7de04c9184967961b521381751a7ac55cd273f4 Mon Sep 17 00:00:00 2001
From: Aaron Puchert <[email protected]>
Date: Sat, 24 Jan 2026 18:08:52 +0100
Subject: [PATCH] Make bolt link against LLVM dylib

This reverts commit 61cff9079c083fdcfb9fa324e50b9e480165037e.
---
 bolt/lib/Core/CMakeLists.txt                               | 1 -
 bolt/lib/Passes/CMakeLists.txt                             | 1 -
 bolt/lib/Profile/CMakeLists.txt                            | 1 -
 bolt/lib/Rewrite/CMakeLists.txt                            | 1 -
 bolt/lib/RuntimeLibs/CMakeLists.txt                        | 1 -
 bolt/lib/Target/AArch64/CMakeLists.txt                     | 1 -
 bolt/lib/Target/RISCV/CMakeLists.txt                       | 1 -
 bolt/lib/Target/X86/CMakeLists.txt                         | 1 -
 bolt/lib/Target/X86/X86MCPlusBuilder.cpp                   | 4 ++++
 bolt/lib/Utils/CMakeLists.txt                              | 1 -
 bolt/tools/bat-dump/CMakeLists.txt                         | 2 --
 bolt/tools/binary-analysis/CMakeLists.txt                  | 1 -
 bolt/tools/driver/CMakeLists.txt                           | 2 --
 bolt/tools/heatmap/CMakeLists.txt                          | 1 -
 bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt                 | 2 --
 bolt/tools/merge-fdata/CMakeLists.txt                      | 2 --
 bolt/unittests/Core/CMakeLists.txt                         | 2 --
 bolt/unittests/Profile/CMakeLists.txt                      | 2 --
 llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.h | 4 ++++
 llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h         | 2 ++
 20 files changed, 10 insertions(+), 23 deletions(-)

diff --git a/bolt/lib/Core/CMakeLists.txt b/bolt/lib/Core/CMakeLists.txt
index fc72dc023c59..aef9b1e243a1 100644
--- a/bolt-21.1.8.src/lib/Core/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Core/CMakeLists.txt
@@ -37,7 +37,6 @@ add_llvm_library(LLVMBOLTCore
   Relocation.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   LINK_LIBS
   ${LLVM_PTHREAD_LIB}
   )
diff --git a/bolt/lib/Passes/CMakeLists.txt b/bolt/lib/Passes/CMakeLists.txt
index 77d2bb9c2bcb..e8bb8978a86a 100644
--- a/bolt-21.1.8.src/lib/Passes/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Passes/CMakeLists.txt
@@ -48,7 +48,6 @@ add_llvm_library(LLVMBOLTPasses
   RetpolineInsertion.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
 
   LINK_LIBS
   ${LLVM_PTHREAD_LIB}
diff --git a/bolt/lib/Profile/CMakeLists.txt b/bolt/lib/Profile/CMakeLists.txt
index a2bb4aa074c7..d2ec75dacb7f 100644
--- a/bolt-21.1.8.src/lib/Profile/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Profile/CMakeLists.txt
@@ -8,7 +8,6 @@ add_llvm_library(LLVMBOLTProfile
   YAMLProfileWriter.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
 
   LINK_COMPONENTS
   Demangle
diff --git a/bolt/lib/Rewrite/CMakeLists.txt b/bolt/lib/Rewrite/CMakeLists.txt
index 775036063dd5..e121eb4508e3 100644
--- a/bolt-21.1.8.src/lib/Rewrite/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Rewrite/CMakeLists.txt
@@ -27,7 +27,6 @@ add_llvm_library(LLVMBOLTRewrite
   SDTRewriter.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
 
   LINK_LIBS
   ${LLVM_PTHREAD_LIB}
diff --git a/bolt/lib/RuntimeLibs/CMakeLists.txt 
b/bolt/lib/RuntimeLibs/CMakeLists.txt
index b8db7e4a1553..e89043036394 100644
--- a/bolt-21.1.8.src/lib/RuntimeLibs/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/RuntimeLibs/CMakeLists.txt
@@ -12,7 +12,6 @@ add_llvm_library(LLVMBOLTRuntimeLibs
   InstrumentationRuntimeLibrary.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   )
 
 target_link_libraries(LLVMBOLTRuntimeLibs
diff --git a/bolt/lib/Target/AArch64/CMakeLists.txt 
b/bolt/lib/Target/AArch64/CMakeLists.txt
index cb38117de659..e65300b722d6 100644
--- a/bolt-21.1.8.src/lib/Target/AArch64/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Target/AArch64/CMakeLists.txt
@@ -22,7 +22,6 @@ add_llvm_library(LLVMBOLTTargetAArch64
   AArch64MCSymbolizer.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
 
   DEPENDS
   AArch64CommonTableGen
diff --git a/bolt/lib/Target/RISCV/CMakeLists.txt 
b/bolt/lib/Target/RISCV/CMakeLists.txt
index 6c3a196f8a1f..93c97effd31e 100644
--- a/bolt-21.1.8.src/lib/Target/RISCV/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Target/RISCV/CMakeLists.txt
@@ -21,7 +21,6 @@ add_llvm_library(LLVMBOLTTargetRISCV
   RISCVMCPlusBuilder.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
 
   DEPENDS
   RISCVCommonTableGen
diff --git a/bolt/lib/Target/X86/CMakeLists.txt 
b/bolt/lib/Target/X86/CMakeLists.txt
index 6d1accb5e815..c83b1ed10017 100644
--- a/bolt-21.1.8.src/lib/Target/X86/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Target/X86/CMakeLists.txt
@@ -22,7 +22,6 @@ add_llvm_library(LLVMBOLTTargetX86
   X86MCSymbolizer.cpp
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
 
   DEPENDS
   X86CommonTableGen
diff --git a/bolt/lib/Target/X86/X86MCPlusBuilder.cpp 
b/bolt/lib/Target/X86/X86MCPlusBuilder.cpp
index a60c1a6bf156..c5fc2d222581 100644
--- a/bolt-21.1.8.src/lib/Target/X86/X86MCPlusBuilder.cpp
+++ b/bolt-21.1.8.src/lib/Target/X86/X86MCPlusBuilder.cpp
@@ -31,6 +31,10 @@
 #include "llvm/Support/ErrorOr.h"
 #include <set>
 
+#define GET_X86_MNEMONIC_TABLES_CPP
+#include "X86GenMnemonicTables.inc"
+#undef GET_X86_MNEMONIC_TABLES_CPP
+
 #define DEBUG_TYPE "mcplus"
 
 using namespace llvm;
diff --git a/bolt/lib/Utils/CMakeLists.txt b/bolt/lib/Utils/CMakeLists.txt
index 94933644ef5e..36d3d67f21ea 100644
--- a/bolt-21.1.8.src/lib/Utils/CMakeLists.txt
+++ b/bolt-21.1.8.src/lib/Utils/CMakeLists.txt
@@ -44,7 +44,6 @@ add_llvm_library(LLVMBOLTUtils
   ${version_inc}
 
   NO_EXPORT
-  DISABLE_LLVM_LINK_LLVM_DYLIB
 
   LINK_LIBS
   ${LLVM_PTHREAD_LIB}
diff --git a/bolt/tools/bat-dump/CMakeLists.txt 
b/bolt/tools/bat-dump/CMakeLists.txt
index 037b7d2662ae..27757568fa9c 100644
--- a/bolt-21.1.8.src/tools/bat-dump/CMakeLists.txt
+++ b/bolt-21.1.8.src/tools/bat-dump/CMakeLists.txt
@@ -5,8 +5,6 @@ set(LLVM_LINK_COMPONENTS
 
 add_bolt_executable(llvm-bat-dump
   bat-dump.cpp
-
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   )
 
 target_link_libraries(llvm-bat-dump
diff --git a/bolt/tools/binary-analysis/CMakeLists.txt 
b/bolt/tools/binary-analysis/CMakeLists.txt
index 29f224e0f66f..d999762b562f 100644
--- a/bolt-21.1.8.src/tools/binary-analysis/CMakeLists.txt
+++ b/bolt-21.1.8.src/tools/binary-analysis/CMakeLists.txt
@@ -7,7 +7,6 @@ set(LLVM_LINK_COMPONENTS
 
 add_bolt_tool(llvm-bolt-binary-analysis
   binary-analysis.cpp
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   )
 
 target_link_libraries(llvm-bolt-binary-analysis
diff --git a/bolt/tools/driver/CMakeLists.txt b/bolt/tools/driver/CMakeLists.txt
index 4b3c7416de97..5103b1530a4e 100644
--- a/bolt-21.1.8.src/tools/driver/CMakeLists.txt
+++ b/bolt-21.1.8.src/tools/driver/CMakeLists.txt
@@ -14,8 +14,6 @@ endif()
 add_bolt_tool(llvm-bolt
   llvm-bolt.cpp
 
-  DISABLE_LLVM_LINK_LLVM_DYLIB
-
   DEPENDS
   ${BOLT_DRIVER_DEPS}
   )
diff --git a/bolt/tools/heatmap/CMakeLists.txt 
b/bolt/tools/heatmap/CMakeLists.txt
index c5d3f6741392..27094622fabf 100644
--- a/bolt-21.1.8.src/tools/heatmap/CMakeLists.txt
+++ b/bolt-21.1.8.src/tools/heatmap/CMakeLists.txt
@@ -7,7 +7,6 @@ set(LLVM_LINK_COMPONENTS
 
 add_bolt_tool(llvm-bolt-heatmap
   heatmap.cpp
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   )
 
 target_link_libraries(llvm-bolt-heatmap
diff --git a/bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt 
b/bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt
index 7eaacb74a9da..9a19ae7aa483 100644
--- a/bolt-21.1.8.src/tools/llvm-bolt-fuzzer/CMakeLists.txt
+++ b/bolt-21.1.8.src/tools/llvm-bolt-fuzzer/CMakeLists.txt
@@ -4,8 +4,6 @@ set(LLVM_LINK_COMPONENTS
 
 add_llvm_fuzzer(llvm-bolt-fuzzer
   llvm-bolt-fuzzer.cpp
-
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   )
 
 if (TARGET llvm-bolt-fuzzer)
diff --git a/bolt/tools/merge-fdata/CMakeLists.txt 
b/bolt/tools/merge-fdata/CMakeLists.txt
index f6a87a226898..5110301c6103 100644
--- a/bolt-21.1.8.src/tools/merge-fdata/CMakeLists.txt
+++ b/bolt-21.1.8.src/tools/merge-fdata/CMakeLists.txt
@@ -3,8 +3,6 @@ set(LLVM_LINK_COMPONENTS Support)
 add_bolt_tool(merge-fdata
   merge-fdata.cpp
 
-  DISABLE_LLVM_LINK_LLVM_DYLIB
-
   DEPENDS
   intrinsics_gen
 )
diff --git a/bolt/unittests/Core/CMakeLists.txt 
b/bolt/unittests/Core/CMakeLists.txt
index 54e8ea10cda1..ae2c30e84b30 100644
--- a/bolt-21.1.8.src/unittests/Core/CMakeLists.txt
+++ b/bolt-21.1.8.src/unittests/Core/CMakeLists.txt
@@ -10,8 +10,6 @@ add_bolt_unittest(CoreTests
   MCPlusBuilder.cpp
   MemoryMaps.cpp
   DynoStats.cpp
-
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   )
 
 target_link_libraries(CoreTests
diff --git a/bolt/unittests/Profile/CMakeLists.txt 
b/bolt/unittests/Profile/CMakeLists.txt
index ce01c6c4b949..6cc1dc4c7b6b 100644
--- a/bolt-21.1.8.src/unittests/Profile/CMakeLists.txt
+++ b/bolt-21.1.8.src/unittests/Profile/CMakeLists.txt
@@ -7,8 +7,6 @@ set(LLVM_LINK_COMPONENTS
 add_bolt_unittest(ProfileTests
   DataAggregator.cpp
   PerfSpeEvents.cpp
-
-  DISABLE_LLVM_LINK_LLVM_DYLIB
   )
 
 target_link_libraries(ProfileTests
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.h 
b/llvm/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.h
index 1a26336d1e72..dd1e94cf185b 100644
--- a/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.h
+++ b/lib/Target/X86/MCTargetDesc/X86EncodingOptimization.h
@@ -12,6 +12,9 @@
 
 #ifndef LLVM_LIB_TARGET_X86_X86ENCODINGOPTIMIZATION_H
 #define LLVM_LIB_TARGET_X86_X86ENCODINGOPTIMIZATION_H
+
+#include "llvm/Support/Compiler.h"
+
 namespace llvm {
 class MCInst;
 class MCInstrDesc;
@@ -23,6 +26,7 @@ bool optimizeMOVSX(MCInst &MI);
 bool optimizeINCDEC(MCInst &MI, bool In64BitMode);
 bool optimizeMOV(MCInst &MI, bool In64BitMode);
 bool optimizeToFixedRegisterOrShortImmediateForm(MCInst &MI);
+LLVM_EXTERNAL_VISIBILITY
 unsigned getOpcodeForShortImmediateForm(unsigned Opcode);
 unsigned getOpcodeForLongImmediateForm(unsigned Opcode);
 } // namespace X86
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h 
b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
index 0e0e13e896ae..c6b87959e353 100644
--- a/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
+++ b/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
@@ -85,6 +85,7 @@ bool is64BitMemOperand(const MCInst &MI, unsigned Op);
 #endif
 
 /// Returns true if this instruction needs an Address-Size override prefix.
+LLVM_EXTERNAL_VISIBILITY
 bool needsAddressSizeOverride(const MCInst &MI, const MCSubtargetInfo &STI,
                               int MemoryOperand, uint64_t TSFlags);
 
@@ -151,6 +152,7 @@ createX86WinCOFFObjectWriter(bool Is64Bit);
 /// \param High requires the high register.
 ///
 /// \returns the sub or super register of a specific X86 register.
+LLVM_EXTERNAL_VISIBILITY
 MCRegister getX86SubSuperRegister(MCRegister Reg, unsigned Size,
                                   bool High = false);
 } // End llvm namespace

Reply via email to