mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
AsmWriter/Bitcode: MDImportedEntity
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229025 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1827,12 +1827,25 @@ static void writeMDObjCProperty(raw_ostream &Out, const MDObjCProperty *N,
|
||||
Out << ")";
|
||||
}
|
||||
|
||||
static void writeMDImportedEntity(raw_ostream &, const MDImportedEntity *,
|
||||
TypePrinting *, SlotTracker *,
|
||||
const Module *) {
|
||||
llvm_unreachable("write not implemented");
|
||||
static void writeMDImportedEntity(raw_ostream &Out, const MDImportedEntity *N,
|
||||
TypePrinting *TypePrinter,
|
||||
SlotTracker *Machine, const Module *Context) {
|
||||
Out << "!MDImportedEntity(";
|
||||
FieldSeparator FS;
|
||||
writeTag(Out, FS, N);
|
||||
Out << FS << "scope: ";
|
||||
writeMetadataAsOperand(Out, N->getScope(), TypePrinter, Machine, Context);
|
||||
if (N->getEntity()) {
|
||||
Out << FS << "entity: ";
|
||||
writeMetadataAsOperand(Out, N->getEntity(), TypePrinter, Machine, Context);
|
||||
}
|
||||
if (N->getLine())
|
||||
Out << FS << "line: " << N->getLine();
|
||||
Out << FS << "name: \"" << N->getName() << "\"";
|
||||
Out << ")";
|
||||
}
|
||||
|
||||
|
||||
static void WriteMDNodeBodyInternal(raw_ostream &Out, const MDNode *Node,
|
||||
TypePrinting *TypePrinter,
|
||||
SlotTracker *Machine,
|
||||
|
Reference in New Issue
Block a user