mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 01:02:46 +00:00
AsmWriter/Bitcode: MDLexicalBlockFile
llvm-svn: 229017
This commit is contained in:
1 parent
a96d409997
commit
06a0702e40
8 files changed
+75
-12
No files matched your search
@@ -993,11 +993,20 @@ static void WriteMDLexicalBlock(const MDLexicalBlock *N,
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
static void WriteMDLexicalBlockFile(const MDLexicalBlockFile *,
|
||||
const ValueEnumerator &, BitstreamWriter &,
|
||||
SmallVectorImpl<uint64_t> &, unsigned) {
|
||||
llvm_unreachable("write not implemented");
|
||||
static void WriteMDLexicalBlockFile(const MDLexicalBlockFile *N,
|
||||
const ValueEnumerator &VE,
|
||||
BitstreamWriter &Stream,
|
||||
SmallVectorImpl<uint64_t> &Record,
|
||||
unsigned Abbrev) {
|
||||
Record.push_back(N->isDistinct());
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getScope()));
|
||||
Record.push_back(VE.getMetadataOrNullID(N->getFile()));
|
||||
Record.push_back(N->getDiscriminator());
|
||||
|
||||
Stream.EmitRecord(bitc::METADATA_LEXICAL_BLOCK_FILE, Record, Abbrev);
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
static void WriteMDNamespace(const MDNamespace *, const ValueEnumerator &,
|
||||
BitstreamWriter &, SmallVectorImpl<uint64_t> &,
|
||||
unsigned) {
|
||||
|
||||
Reference in new issue
Block a user