mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Compute isFunctionLocal in MDNode ctor or via argument in new function getWhenValsUnresolved().
Document PFS argument to ParseValID() and ConvertGlobalOrMetadataValIDToValue(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93108 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -484,7 +484,9 @@ static void WriteMDNode(const MDNode *N,
|
||||
Record.push_back(0);
|
||||
}
|
||||
}
|
||||
Stream.EmitRecord(bitc::METADATA_NODE, Record, 0);
|
||||
unsigned MDCode = N->isFunctionLocal() ? bitc::METADATA_FN_NODE :
|
||||
bitc::METADATA_NODE;
|
||||
Stream.EmitRecord(MDCode, Record, 0);
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user