From bc42da0326b5ebc05f2beb96f3655260952ea2ad Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 23 Feb 2015 05:59:14 +0000 Subject: [llvm-pdbdump] Very minor code cleanup. This just removes some dead enums as well as some debug flushes of stdout. llvm-svn: 230204 --- llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp') diff --git a/llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp b/llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp index f98bf9b18fc..3abe59dba62 100644 --- a/llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp +++ b/llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp @@ -17,19 +17,16 @@ using namespace llvm; IPDBSourceFile::~IPDBSourceFile() {} -void IPDBSourceFile::dump(raw_ostream &OS, int Indent, - PDB_DumpLevel Level) const { - if (Level == PDB_DumpLevel::Compact) { - OS.indent(Indent); - PDB_Checksum ChecksumType = getChecksumType(); - OS << "["; - if (ChecksumType != PDB_Checksum::None) { - OS << ChecksumType << ": "; - std::string Checksum = getChecksum(); - for (uint8_t c : Checksum) - OS << format_hex_no_prefix(c, 2, true); - } else - OS << "No checksum"; - OS << "] " << getFileName() << "\n"; - } +void IPDBSourceFile::dump(raw_ostream &OS, int Indent) const { + OS.indent(Indent); + PDB_Checksum ChecksumType = getChecksumType(); + OS << "["; + if (ChecksumType != PDB_Checksum::None) { + OS << ChecksumType << ": "; + std::string Checksum = getChecksum(); + for (uint8_t c : Checksum) + OS << format_hex_no_prefix(c, 2, true); + } else + OS << "No checksum"; + OS << "] " << getFileName() << "\n"; } -- cgit v1.2.3