diff options
author | Zachary Turner <zturner@google.com> | 2015-02-23 05:59:14 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-02-23 05:59:14 +0000 |
commit | bc42da0326b5ebc05f2beb96f3655260952ea2ad (patch) | |
tree | 97cdcb10368391321e1bb5b339a108b5a5c78f29 /llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp | |
parent | 29c69105fb02de4aec7ad0e614bc299c807370cd (diff) | |
download | llvm-bc42da0326b5ebc05f2beb96f3655260952ea2ad.zip llvm-bc42da0326b5ebc05f2beb96f3655260952ea2ad.tar.gz llvm-bc42da0326b5ebc05f2beb96f3655260952ea2ad.tar.bz2 |
[llvm-pdbdump] Very minor code cleanup.
This just removes some dead enums as well as some debug flushes
of stdout.
llvm-svn: 230204
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp b/llvm/lib/DebugInfo/PDB/IPDBSourceFile.cpp index f98bf9b..3abe59d 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"; } |