mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-19 23:24:47 -04:00
AsmWriter/Bitcode: MDLexicalBlock
llvm-svn: 229016
This commit is contained in:
@@ -978,11 +978,21 @@ static void WriteMDSubprogram(const MDSubprogram *N,
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
static void WriteMDLexicalBlock(const MDLexicalBlock *, const ValueEnumerator &,
|
||||
BitstreamWriter &, SmallVectorImpl<uint64_t> &,
|
||||
unsigned) {
|
||||
llvm_unreachable("write not implemented");
|
||||
static void WriteMDLexicalBlock(const MDLexicalBlock *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->getLine());
|
||||
Record.push_back(N->getColumn());
|
||||
|
||||
Stream.EmitRecord(bitc::METADATA_LEXICAL_BLOCK, Record, Abbrev);
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
static void WriteMDLexicalBlockFile(const MDLexicalBlockFile *,
|
||||
const ValueEnumerator &, BitstreamWriter &,
|
||||
SmallVectorImpl<uint64_t> &, unsigned) {
|
||||
|
||||
Reference in New Issue
Block a user