Serialization: Switch over to using the native SmallVector based BitstreamWriter

ctor.

llvm-svn: 151752
This commit is contained in:
Daniel Dunbar 2012-02-29 20:31:23 +00:00
parent f591df6dd7
commit 9a96386e6d
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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;