mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-30 09:01:26 +00:00
Compute isFunctionLocal in MDNode ctor or via argument in new function getWhenValsUnresolved().
Document PFS argument to ParseValID() and ConvertGlobalOrMetadataValIDToValue(). llvm-svn: 93108
This commit is contained in:
1 parent
d8509424a4
commit
b8fd152d94
7 files changed
+80
-29
No files matched your search
@@ -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