[PATCH] D93351: [llvm-shlib] Build backend libraries as loadable modules
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 16 08:59:40 PST 2020
serge-sans-paille added inline comments.
================
Comment at: llvm/tools/llvm-shlib/libllvm.cpp:21
+
+ snprintf(SharedObjectName, 100, "LLVM%sBackend.so", Target);
+ Handle = dlopen(SharedObjectName, RTLD_LAZY | RTLD_NOLOAD);
----------------
serge-sans-paille wrote:
> It's probably safer to just use an ``llvm::raw_string_ostream`` here, as your code breaks if a Target has a very long name.
Or `llvm::format` btw
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93351/new/
https://reviews.llvm.org/D93351
More information about the llvm-commits
mailing list