mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Do not use global typedef for MDKindID.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -836,7 +836,7 @@ bool BitcodeReader::ParseMetadata() {
|
||||
return Error("Invalid METADATA_KIND record");
|
||||
SmallString<8> Name;
|
||||
Name.resize(RecordLength-1);
|
||||
MDKindID Kind = Record[0];
|
||||
unsigned Kind = Record[0];
|
||||
for (unsigned i = 1; i != RecordLength; ++i)
|
||||
Name[i-1] = Record[i];
|
||||
Metadata &TheMetadata = Context.getMetadata();
|
||||
@ -1580,7 +1580,7 @@ bool BitcodeReader::ParseMetadataAttachment() {
|
||||
return Error ("Invalid METADATA_ATTACHMENT reader!");
|
||||
Instruction *Inst = InstructionList[Record[0]];
|
||||
for (unsigned i = 1; i != RecordLength; i = i+2) {
|
||||
MDKindID Kind = Record[i];
|
||||
unsigned Kind = Record[i];
|
||||
Value *Node = MDValueList.getValueFwdRef(Record[i+1]);
|
||||
TheMetadata.setMD(Kind, cast<MDNode>(Node), Inst);
|
||||
}
|
||||
|
Reference in New Issue
Block a user