mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
IR: Add COMDATs to the IR
This new IR facility allows us to represent the object-file semantic of a COMDAT group. COMDATs allow us to tie together sections and make the inclusion of one dependent on another. This is required to implement features like MS ABI VFTables and optimizing away certain kinds of initialization in C++. This functionality is only representable in COFF and ELF, Mach-O has no similar mechanism. Differential Revision: http://reviews.llvm.org/D4178 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -26,6 +26,7 @@
|
||||
#include <vector>
|
||||
|
||||
namespace llvm {
|
||||
class Comdat;
|
||||
class MemoryBuffer;
|
||||
class LLVMContext;
|
||||
|
||||
@ -135,6 +136,7 @@ class BitcodeReader : public GVMaterializer {
|
||||
std::vector<Type*> TypeList;
|
||||
BitcodeReaderValueList ValueList;
|
||||
BitcodeReaderMDValueList MDValueList;
|
||||
std::vector<Comdat *> ComdatList;
|
||||
SmallVector<Instruction *, 64> InstructionList;
|
||||
SmallVector<SmallVector<uint64_t, 64>, 64> UseListRecords;
|
||||
|
||||
|
Reference in New Issue
Block a user