mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
AsmWriter/Bitcode: MDExpression
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229023 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1092,11 +1092,20 @@ static void WriteMDLocalVariable(const MDLocalVariable *N,
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
static void WriteMDExpression(const MDExpression *, const ValueEnumerator &,
|
||||
BitstreamWriter &, SmallVectorImpl<uint64_t> &,
|
||||
unsigned) {
|
||||
llvm_unreachable("write not implemented");
|
||||
static void WriteMDExpression(const MDExpression *N, const ValueEnumerator &,
|
||||
BitstreamWriter &Stream,
|
||||
SmallVectorImpl<uint64_t> &Record,
|
||||
unsigned Abbrev) {
|
||||
Record.reserve(N->getElements().size() + 1);
|
||||
|
||||
Record.push_back(N->isDistinct());
|
||||
for (uint64_t I : N->getElements())
|
||||
Record.push_back(I);
|
||||
|
||||
Stream.EmitRecord(bitc::METADATA_EXPRESSION, Record, Abbrev);
|
||||
Record.clear();
|
||||
}
|
||||
|
||||
static void WriteMDObjCProperty(const MDObjCProperty *, const ValueEnumerator &,
|
||||
BitstreamWriter &, SmallVectorImpl<uint64_t> &,
|
||||
unsigned) {
|
||||
|
Reference in New Issue
Block a user