From 6b09d5a9fc03ebe06b6e9a69465018af278dbe28 Mon Sep 17 00:00:00 2001 From: Tapasya Patki Date: Thu, 19 Sep 2024 18:21:48 -0700 Subject: [PATCH] Builds, but pass is not picked up with -XClang -load --- src/c/weaver/weave/perfflow_weave_new_pass.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/c/weaver/weave/perfflow_weave_new_pass.cpp b/src/c/weaver/weave/perfflow_weave_new_pass.cpp index a3b3c159..9ffb43eb 100644 --- a/src/c/weaver/weave/perfflow_weave_new_pass.cpp +++ b/src/c/weaver/weave/perfflow_weave_new_pass.cpp @@ -87,7 +87,7 @@ PreservedAnalyses NewWeavingPass::run(llvm::Module &M, llvm::PassPluginLibraryInfo getNewWeavingPassPluginInfo() { - return {LLVM_PLUGIN_API_VERSION, "inject-func-call", LLVM_VERSION_STRING, + return {LLVM_PLUGIN_API_VERSION, "new-weaving-pass", LLVM_VERSION_STRING, [](PassBuilder &PB) { PB.registerPipelineParsingCallback( @@ -104,8 +104,8 @@ llvm::PassPluginLibraryInfo getNewWeavingPassPluginInfo() }}; } -// extern "C" LLVM_ATTRIBUTE_WEAK ::llvm::PassPluginLibraryInfo -// llvmGetPassPluginInfo() -// { -// return getNewWeavingPassPluginInfo(); -// } \ No newline at end of file +extern "C" LLVM_ATTRIBUTE_WEAK ::llvm::PassPluginLibraryInfo +llvmGetPassPluginInfo() +{ + return getNewWeavingPassPluginInfo(); +} \ No newline at end of file