Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/lib/IR/AsmWriter.cpp
Show First 20 Lines • Show All 1,748 Lines • ▼ Show 20 Lines | static void writeDILocation(raw_ostream &Out, const DILocation *DL, | ||||
const Module *Context) { | const Module *Context) { | ||||
Out << "!DILocation("; | Out << "!DILocation("; | ||||
MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); | MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); | ||||
// Always output the line, since 0 is a relevant and important value for it. | // Always output the line, since 0 is a relevant and important value for it. | ||||
Printer.printInt("line", DL->getLine(), /* ShouldSkipZero */ false); | Printer.printInt("line", DL->getLine(), /* ShouldSkipZero */ false); | ||||
Printer.printInt("column", DL->getColumn()); | Printer.printInt("column", DL->getColumn()); | ||||
Printer.printMetadata("scope", DL->getRawScope(), /* ShouldSkipNull */ false); | Printer.printMetadata("scope", DL->getRawScope(), /* ShouldSkipNull */ false); | ||||
Printer.printMetadata("inlinedAt", DL->getRawInlinedAt()); | Printer.printMetadata("inlinedAt", DL->getRawInlinedAt()); | ||||
Printer.printBool("isImplicitCode", DL->isImplicitCode(), | |||||
/* Default */ false); | |||||
Out << ")"; | Out << ")"; | ||||
} | } | ||||
static void writeDISubrange(raw_ostream &Out, const DISubrange *N, | static void writeDISubrange(raw_ostream &Out, const DISubrange *N, | ||||
TypePrinting *TypePrinter, SlotTracker *Machine, | TypePrinting *TypePrinter, SlotTracker *Machine, | ||||
const Module *Context) { | const Module *Context) { | ||||
Out << "!DISubrange("; | Out << "!DISubrange("; | ||||
MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); | MDFieldPrinter Printer(Out, TypePrinter, Machine, Context); | ||||
▲ Show 20 Lines • Show All 2,512 Lines • Show Last 20 Lines |