[llvm] [BOLT] Add pre-parsed perf script support (PR #163785)

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 06:42:53 PDT 2026


================
@@ -7,6 +7,12 @@ set(LLVM_LINK_COMPONENTS
 add_bolt_unittest(ProfileTests
   DataAggregator.cpp
   PerfSpeEvents.cpp
+  PerfScripts.cpp
+
+  # FIXME CoreTests uses `llvm::detail::TakeError(llvm::Error)`, but linking
+  #       to LLVMTestingSupport introduces a transitive dependency on the
+  #       dynamic LLVM library when LLVM_LINK_LLVM_DYLIB is ON.
+  ${LLVM_MAIN_SRC_DIR}/lib/Testing/Support/Error.cpp
----------------
nico wrote:

What does "CoreTests" refer to here?

What's the path forward here?

It seems preferable to copy the parts of that file that you need over (and adjust the function name slightly) instead of just including an internal cpp file.

https://github.com/llvm/llvm-project/pull/163785


More information about the llvm-commits mailing list