summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-05-01 16:46:39 +0000
committerZachary Turner <zturner@google.com>2017-05-01 16:46:39 +0000
commit7cc13e557c028b1d6e28880ec26cb1ceccad6b67 (patch)
treed71668b0e7ac6b9ac33d17d88e7e5748368099b4 /llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
parent8a6238201f015729a47691c62808a23ec8525096 (diff)
downloadbcm5719-llvm-7cc13e557c028b1d6e28880ec26cb1ceccad6b67.tar.gz
bcm5719-llvm-7cc13e557c028b1d6e28880ec26cb1ceccad6b67.zip
[PDB/CodeView] Rename some classes.
In preparation for introducing writing capabilities for each of these classes, I would like to adopt a Foo / FooRef naming convention, where Foo indicates that the class can manipulate and serialize Foos, and FooRef indicates that it is an immutable view of an existing Foo. In other words, Foo is a writer and FooRef is a reader. This patch names some existing readers to conform to the FooRef convention, while offering no functional change. llvm-svn: 301810
Diffstat (limited to 'llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp')
-rw-r--r--llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
index 8ed1a9020c4..eec0793e2dd 100644
--- a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
+++ b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.cpp
@@ -80,8 +80,6 @@ struct PageStats {
BitVector UseAfterFreePages;
};
-// Define a locally scoped visitor to print the different
-// substream types types.
class C13RawVisitor : public C13DebugFragmentVisitor {
public:
C13RawVisitor(ScopedPrinter &P, PDBFile &F)
@@ -723,7 +721,7 @@ Error LLVMOutputStyle::dumpDbiStream() {
File.getMsfLayout(), File.getMsfBuffer(),
Modi.Info.getModuleStreamIndex());
- ModuleDebugStream ModS(Modi.Info, std::move(ModStreamData));
+ ModuleDebugStreamRef ModS(Modi.Info, std::move(ModStreamData));
if (auto EC = ModS.reload())
return EC;
@@ -751,7 +749,6 @@ Error LLVMOutputStyle::dumpDbiStream() {
if (opts::raw::DumpLineInfo) {
ListScope SS(P, "LineInfo");
- // Inlinee Line Type Indices refer to the IPI stream.
C13RawVisitor V(P, File);
if (auto EC = codeview::visitModuleDebugFragments(
ModS.linesAndChecksums(), V))
OpenPOWER on IntegriCloud