mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-01 02:01:39 +00:00
Added LLVM Asm/Bitcode Reader/Writer support for new IR keyword externally_initialized.
llvm-svn: 174340
This commit is contained in:
1 parent
9ca910111c
commit
27e7ef326a
7 files changed
+25
-5
No files matched your search
@@ -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