Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
Show First 20 Lines • Show All 1,371 Lines • ▼ Show 20 Lines | if (to_integer(opts::exportstream::Stream, Index)) { | ||||
} | } | ||||
Success = true; | Success = true; | ||||
outs() << "Dumping contents of stream index " << Index << " to file " | outs() << "Dumping contents of stream index " << Index << " to file " | ||||
<< OutFileName << ".\n"; | << OutFileName << ".\n"; | ||||
} | } | ||||
} | } | ||||
if (!Success) { | if (!Success) { | ||||
InfoStream &IS = cantFail(File.getPDBInfoStream()); | InfoStream &IS = llvm_cantFail(File.getPDBInfoStream()); | ||||
Index = ExitOnErr(IS.getNamedStreamIndex(opts::exportstream::Stream)); | Index = ExitOnErr(IS.getNamedStreamIndex(opts::exportstream::Stream)); | ||||
outs() << "Dumping contents of stream '" << opts::exportstream::Stream | outs() << "Dumping contents of stream '" << opts::exportstream::Stream | ||||
<< "' (index " << Index << ") to file " << OutFileName << ".\n"; | << "' (index " << Index << ") to file " << OutFileName << ".\n"; | ||||
} | } | ||||
SourceStream = File.createIndexedStream(Index); | SourceStream = File.createIndexedStream(Index); | ||||
auto OutFile = ExitOnErr( | auto OutFile = ExitOnErr( | ||||
FileOutputBuffer::create(OutFileName, SourceStream->getLength())); | FileOutputBuffer::create(OutFileName, SourceStream->getLength())); | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |