forked from OSchip/llvm-project
Serialization: Switch over to using the native SmallVector based BitstreamWriter
ctor. llvm-svn: 151752
This commit is contained in:
parent
f591df6dd7
commit
9a96386e6d
|
@ -709,7 +709,7 @@ class PCHGenerator : public SemaConsumer {
|
|||
raw_ostream *Out;
|
||||
Sema *SemaPtr;
|
||||
MemorizeStatCalls *StatCalls; // owned by the FileManager
|
||||
std::vector<unsigned char> Buffer;
|
||||
llvm::SmallVector<char, 128> Buffer;
|
||||
llvm::BitstreamWriter Stream;
|
||||
ASTWriter Writer;
|
||||
|
||||
|
|
|
@ -2423,7 +2423,7 @@ bool ASTUnit::serialize(raw_ostream &OS) {
|
|||
if (getDiagnostics().hasErrorOccurred())
|
||||
return true;
|
||||
|
||||
std::vector<unsigned char> Buffer;
|
||||
SmallString<128> Buffer;
|
||||
llvm::BitstreamWriter Stream(Buffer);
|
||||
ASTWriter Writer(Stream);
|
||||
// FIXME: Handle modules
|
||||
|
|
|
@ -159,7 +159,7 @@ private:
|
|||
const DiagnosticOptions &DiagOpts;
|
||||
|
||||
/// \brief The byte buffer for the serialized content.
|
||||
std::vector<unsigned char> Buffer;
|
||||
SmallString<1024> Buffer;
|
||||
|
||||
/// \brief The BitStreamWriter for the serialized diagnostics.
|
||||
llvm::BitstreamWriter Stream;
|
||||
|
|
Loading…
Reference in New Issue