1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/include/llvm/LTO
Rafael Espindola f8f8e59cdd Make the LTO comdat api more symbol table friendly.
In an IR symbol table I would expect the comdats to be represented as:

- A table of strings, one for each comdat name.
- Each symbol has an optional index into that table.

The natural api for accessing that would be

InputFile:
ArrayRef<StringRef> getComdatTable() const;

Symbol:
int getComdatIndex() const;

This patch implements an API as close to that as possible.  The
implementation on top of the current IRObjectFile is a bit hackish,
but should map just fine over a symbol table and is very convenient to
use.

llvm-svn: 285061
2016-10-25 12:02:03 +00:00
..
legacy Recommit "Use StringRef in LTOModule implementation (NFC)"" 2016-10-07 19:05:14 +00:00
Caching.h LTO: Simplify caching interface. 2016-09-23 21:33:43 +00:00
Config.h Do a sweep over move ctors and remove those that are identical to the default. 2016-10-20 12:20:28 +00:00
LTO.h Make the LTO comdat api more symbol table friendly. 2016-10-25 12:02:03 +00:00
LTOBackend.h LTO: Simplify caching interface. 2016-09-23 21:33:43 +00:00