OS << " [" << dwarf::TagString(Tag) << "] ";
// TODO : Print context
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " ["
<< getLineNumber() << ", "
<< getSizeInBits() << ", "
OS << " [fwd] ";
if (isBasicType())
- DIBasicType(DbgNode).dump();
+ DIBasicType(DbgNode).print(OS);
else if (isDerivedType())
- DIDerivedType(DbgNode).dump();
+ DIDerivedType(DbgNode).print(OS);
else if (isCompositeType())
- DICompositeType(DbgNode).dump();
+ DICompositeType(DbgNode).print(OS);
else {
OS << "Invalid DIType\n";
return;
/// print - Print derived type.
void DIDerivedType::print(raw_ostream &OS) const {
- OS << "\n\t Derived From: "; getTypeDerivedFrom().dump();
+ OS << "\n\t Derived From: "; getTypeDerivedFrom().print(OS);
}
/// print - Print composite type.
OS << " [" << dwarf::TagString(Tag) << "] ";
// TODO : Print context
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " [" << getLineNumber() << "] ";
if (isLocalToUnit())
OS << " [def] ";
if (isGlobalVariable())
- DIGlobalVariable(DbgNode).dump();
+ DIGlobalVariable(DbgNode).print(OS);
OS << "\n";
}
OS << " [" << dwarf::TagString(Tag) << "] ";
// TODO : Print context
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " [" << getLineNumber() << "] ";
if (isLocalToUnit())
/// print - Print global variable.
void DIGlobalVariable::print(raw_ostream &OS) const {
OS << " [";
- getGlobal()->dump();
+ getGlobal()->print(OS);
OS << "] ";
}
if (!Res.empty())
OS << " [" << Res << "] ";
- getCompileUnit().dump();
+ getCompileUnit().print(OS);
OS << " [" << getLineNumber() << "] ";
- getType().dump();
+ getType().print(OS);
OS << "\n";
// FIXME: Dump complex addresses