mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Added LLVM Asm/Bitcode Reader/Writer support for new IR keyword externally_initialized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1596,9 +1596,13 @@ bool BitcodeReader::ParseModule(bool Resume) {
|
||||
if (Record.size() > 8)
|
||||
UnnamedAddr = Record[8];
|
||||
|
||||
bool ExternallyInitialized = false;
|
||||
if (Record.size() > 9)
|
||||
ExternallyInitialized = Record[9];
|
||||
|
||||
GlobalVariable *NewGV =
|
||||
new GlobalVariable(*TheModule, Ty, isConstant, Linkage, 0, "", 0,
|
||||
TLM, AddressSpace);
|
||||
TLM, AddressSpace, ExternallyInitialized);
|
||||
NewGV->setAlignment(Alignment);
|
||||
if (!Section.empty())
|
||||
NewGV->setSection(Section);
|
||||
|
Reference in New Issue
Block a user