1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/include/llvm/Bitcode
Mehdi Amini 07b85fee55 Remove "ExportingModule" from ThinLTO Index (NFC)
There is no real reason the index has to have the concept of an
exporting Module. We should be able to have one single unique
instance of the Index, and it should be read-only after creation
for the whole ThinLTO processing.
The linker plugin should be able to process multiple modules (in
parallel or in sequence) with the same index.

The only reason the ExportingModule was present seems to be to
implement hasExportedFunctions() that is used by the Module linker
to decide what to do with the current Module.
For now I replaced it with a query to the map of Modules path to
see if this module was declared in the Index and consider that if
it is the case then it is probably exporting function.
On the long term the Linker interface needs to evolve and this
call should not be needed anymore.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 254581
2015-12-03 02:37:23 +00:00
..
BitCodes.h Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
BitcodeWriterPass.h Support for function summary index bitcode sections and files. 2015-10-04 14:33:43 +00:00
BitstreamReader.h Fix testing for end of stream in bitstream reader. 2015-08-03 18:01:50 +00:00
BitstreamWriter.h Clang format a few prior patches (NFC) 2015-11-02 18:02:11 +00:00
LLVMBitCodes.h [ThinLTO] Add MODULE_CODE_METADATA_VALUES record 2015-11-20 14:51:27 +00:00
ReaderWriter.h Remove "ExportingModule" from ThinLTO Index (NFC) 2015-12-03 02:37:23 +00:00