[llvm-dev] big module for a project

Robinson, Paul via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 11 08:55:16 PST 2016


Maybe use llvm-link to collect the individual bitcode .o files into one master .o file, then your tool can load just the one big .o file.
--paulr

From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Yuxi Chen via llvm-dev
Sent: Thursday, March 10, 2016 7:55 PM
To: llvm-dev at lists.llvm.org
Cc: llvmdev-bounces at cs.uiuc.edu; llvmdev at cs.uiuc.edu
Subject: [llvm-dev] big module for a project

Hi All,

I am using clang to compile Mysql source code. Because I want to do some inter-procedural analysis, hopefully, I want to get a .o(bitcode) file(a module) containing all possible function declarations and definitions. Is it possible to do that ? Or you guys have some suggestions?

To be clear, like Mysql, there is a mysqld routine, which is a major routine. I want to mysqld.o(which is generated by clang) to contain all possible function declarations and definitions. So when I do some analysis, I just need load one module, which is mysqld.o, instead of all .o files.


Best,
Yuxi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160311/aa0065ce/attachment.html>


More information about the llvm-dev mailing list