Switch dump()/print() method definitions to LLVM_DUMP_METHOD instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253945
91177308-0d34-0410-b5e6-
96231b3b80d8
///
void Emit(const AsmPrinter *AP) const;
///
void Emit(const AsmPrinter *AP) const;
void print(raw_ostream &O);
void dump();
void print(raw_ostream &O);
void dump();
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
///
unsigned SizeOf(const AsmPrinter *AP) const;
///
unsigned SizeOf(const AsmPrinter *AP) const;
void print(raw_ostream &O) const;
void dump() const;
void print(raw_ostream &O) const;
void dump() const;
};
struct IntrusiveBackListNode {
};
struct IntrusiveBackListNode {
/// gives \a DIEValue::isNone) if no such attribute exists.
DIEValue findAttribute(dwarf::Attribute Attribute) const;
/// gives \a DIEValue::isNone) if no such attribute exists.
DIEValue findAttribute(dwarf::Attribute Attribute) const;
void print(raw_ostream &O, unsigned IndentCount = 0) const;
void dump();
void print(raw_ostream &O, unsigned IndentCount = 0) const;
void dump();
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
//===--------------------------------------------------------------------===//
};
//===--------------------------------------------------------------------===//
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void EmitValue(const AsmPrinter *AP, dwarf::Form Form) const;
unsigned SizeOf(const AsmPrinter *AP, dwarf::Form Form) const;
void print(raw_ostream &O) const;
void print(raw_ostream &O) const;
};
} // end llvm namespace
};
} // end llvm namespace
AP->EmitULEB128(0, "EOM(2)");
}
AP->EmitULEB128(0, "EOM(2)");
}
void DIEAbbrev::print(raw_ostream &O) {
O << "Abbreviation @"
<< format("0x%lx", (long)(intptr_t)this)
void DIEAbbrev::print(raw_ostream &O) {
O << "Abbreviation @"
<< format("0x%lx", (long)(intptr_t)this)
void DIEAbbrev::dump() { print(dbgs()); }
void DIEAbbrev::dump() { print(dbgs()); }
DIEAbbrev DIE::generateAbbrev() const {
DIEAbbrev Abbrev(Tag, hasChildren());
DIEAbbrev DIE::generateAbbrev() const {
DIEAbbrev Abbrev(Tag, hasChildren());
static void printValues(raw_ostream &O, const DIEValueList &Values,
StringRef Type, unsigned Size, unsigned IndentCount) {
O << Type << ": Size: " << Size << "\n";
static void printValues(raw_ostream &O, const DIEValueList &Values,
StringRef Type, unsigned Size, unsigned IndentCount) {
O << Type << ": Size: " << Size << "\n";
void DIE::print(raw_ostream &O, unsigned IndentCount) const {
const std::string Indent(IndentCount, ' ');
O << Indent << "Die: " << format("0x%lx", (long)(intptr_t) this)
void DIE::print(raw_ostream &O, unsigned IndentCount) const {
const std::string Indent(IndentCount, ' ');
O << Indent << "Die: " << format("0x%lx", (long)(intptr_t) this)
void DIE::dump() {
print(dbgs());
}
void DIE::dump() {
print(dbgs());
}
void DIEValue::EmitValue(const AsmPrinter *AP) const {
switch (Ty) {
void DIEValue::EmitValue(const AsmPrinter *AP) const {
switch (Ty) {
llvm_unreachable("Unknown DIE kind");
}
llvm_unreachable("Unknown DIE kind");
}
void DIEValue::print(raw_ostream &O) const {
switch (Ty) {
case isNone:
void DIEValue::print(raw_ostream &O) const {
switch (Ty) {
case isNone:
void DIEValue::dump() const {
print(dbgs());
}
void DIEValue::dump() const {
print(dbgs());
}
//===----------------------------------------------------------------------===//
// DIEInteger Implementation
//===----------------------------------------------------------------------===//
// DIEInteger Implementation
void DIEInteger::print(raw_ostream &O) const {
O << "Int: " << (int64_t)Integer << " 0x";
O.write_hex(Integer);
}
void DIEInteger::print(raw_ostream &O) const {
O << "Int: " << (int64_t)Integer << " 0x";
O.write_hex(Integer);
}
//===----------------------------------------------------------------------===//
// DIEExpr Implementation
//===----------------------------------------------------------------------===//
// DIEExpr Implementation
return AP->getPointerSize();
}
return AP->getPointerSize();
}
void DIEExpr::print(raw_ostream &O) const { O << "Expr: " << *Expr; }
void DIEExpr::print(raw_ostream &O) const { O << "Expr: " << *Expr; }
//===----------------------------------------------------------------------===//
// DIELabel Implementation
//===----------------------------------------------------------------------===//
// DIELabel Implementation
return AP->getPointerSize();
}
return AP->getPointerSize();
}
void DIELabel::print(raw_ostream &O) const { O << "Lbl: " << Label->getName(); }
void DIELabel::print(raw_ostream &O) const { O << "Lbl: " << Label->getName(); }
//===----------------------------------------------------------------------===//
// DIEDelta Implementation
//===----------------------------------------------------------------------===//
// DIEDelta Implementation
return AP->getPointerSize();
}
return AP->getPointerSize();
}
void DIEDelta::print(raw_ostream &O) const {
O << "Del: " << LabelHi->getName() << "-" << LabelLo->getName();
}
void DIEDelta::print(raw_ostream &O) const {
O << "Del: " << LabelHi->getName() << "-" << LabelLo->getName();
}
//===----------------------------------------------------------------------===//
// DIEString Implementation
//===----------------------------------------------------------------------===//
// DIEString Implementation
return DIEInteger(S.getOffset()).SizeOf(AP, Form);
}
return DIEInteger(S.getOffset()).SizeOf(AP, Form);
}
void DIEString::print(raw_ostream &O) const {
O << "String: " << S.getString();
}
void DIEString::print(raw_ostream &O) const {
O << "String: " << S.getString();
}
//===----------------------------------------------------------------------===//
// DIEEntry Implementation
//===----------------------------------------------------------------------===//
// DIEEntry Implementation
return sizeof(int32_t);
}
return sizeof(int32_t);
}
void DIEEntry::print(raw_ostream &O) const {
O << format("Die: 0x%lx", (long)(intptr_t)&Entry);
}
void DIEEntry::print(raw_ostream &O) const {
O << format("Die: 0x%lx", (long)(intptr_t)&Entry);
}
//===----------------------------------------------------------------------===//
// DIETypeSignature Implementation
//===----------------------------------------------------------------------===//
// DIETypeSignature Implementation
Asm->OutStreamer->EmitIntValue(Unit->getTypeSignature(), 8);
}
Asm->OutStreamer->EmitIntValue(Unit->getTypeSignature(), 8);
}
void DIETypeSignature::print(raw_ostream &O) const {
O << format("Type Unit: 0x%lx", Unit->getTypeSignature());
}
void DIETypeSignature::print(raw_ostream &O) const {
O << format("Type Unit: 0x%lx", Unit->getTypeSignature());
}
//===----------------------------------------------------------------------===//
// DIELoc Implementation
//===----------------------------------------------------------------------===//
// DIELoc Implementation
void DIELoc::print(raw_ostream &O) const {
printValues(O, *this, "ExprLoc", Size, 5);
}
void DIELoc::print(raw_ostream &O) const {
printValues(O, *this, "ExprLoc", Size, 5);
}
//===----------------------------------------------------------------------===//
// DIEBlock Implementation
//===----------------------------------------------------------------------===//
// DIEBlock Implementation
void DIEBlock::print(raw_ostream &O) const {
printValues(O, *this, "Blk", Size, 5);
}
void DIEBlock::print(raw_ostream &O) const {
printValues(O, *this, "Blk", Size, 5);
}
//===----------------------------------------------------------------------===//
// DIELocList Implementation
//===----------------------------------------------------------------------===//
// DIELocList Implementation
AP->emitDwarfSymbolReference(Label, /*ForceOffset*/ DD->useSplitDwarf());
}
AP->emitDwarfSymbolReference(Label, /*ForceOffset*/ DD->useSplitDwarf());
}
void DIELocList::print(raw_ostream &O) const { O << "LocList: " << Index; }
void DIELocList::print(raw_ostream &O) const { O << "LocList: " << Index; }