mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-25 16:30:05 +00:00
Fix MDString Abbrev setup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d701aa7bed
commit
2453c40145
@ -504,10 +504,6 @@ static void WriteValues(unsigned FirstVal, unsigned LastVal,
|
||||
|
||||
LastBlockID = bitc::METADATA_BLOCK_ID;
|
||||
Stream.EnterSubblock(bitc::METADATA_BLOCK_ID, 3);
|
||||
}
|
||||
}
|
||||
if (const MDString *MDS = dyn_cast<MDString>(V)) {
|
||||
if (MDSAbbrev == 0) {
|
||||
// Abbrev for METADATA_STRING.
|
||||
BitCodeAbbrev *Abbv = new BitCodeAbbrev();
|
||||
Abbv->Add(BitCodeAbbrevOp(bitc::METADATA_STRING));
|
||||
@ -515,6 +511,8 @@ static void WriteValues(unsigned FirstVal, unsigned LastVal,
|
||||
Abbv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 8));
|
||||
MDSAbbrev = Stream.EmitAbbrev(Abbv);
|
||||
}
|
||||
}
|
||||
if (const MDString *MDS = dyn_cast<MDString>(V)) {
|
||||
// Code: [strchar x N]
|
||||
const char *StrBegin = MDS->begin();
|
||||
for (unsigned i = 0, e = MDS->length(); i != e; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user