diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-10-14 00:57:34 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-10-14 00:57:34 +0000 |
commit | bd272ece3ffe5fbe65596643aa2d7d6adf6f98d5 (patch) | |
tree | ac363f23e07024fc3844a6dd473e6fa5f81a9675 /lib/Frontend/SerializedDiagnosticPrinter.cpp | |
parent | 54898363ff76ff1bd5dd2ee569b909625002be7f (diff) |
Revert "Frontend: Extract SerializedDiagnosticReader out of CXLoadedDiagnostic (NFC)"
The bots can't seem to find an include file. Reverting for now and
I'll look into it in a bit.
This reverts commits r219647 and r219648.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/SerializedDiagnosticPrinter.cpp')
-rw-r--r-- | lib/Frontend/SerializedDiagnosticPrinter.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Frontend/SerializedDiagnosticPrinter.cpp b/lib/Frontend/SerializedDiagnosticPrinter.cpp index 133d86c193..3d6e7578c7 100644 --- a/lib/Frontend/SerializedDiagnosticPrinter.cpp +++ b/lib/Frontend/SerializedDiagnosticPrinter.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// #include "clang/Frontend/SerializedDiagnosticPrinter.h" -#include "clang/Frontend/SerializedDiagnostics.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/DiagnosticOptions.h" #include "clang/Basic/FileManager.h" @@ -173,6 +172,9 @@ private: void AddCharSourceRangeToRecord(CharSourceRange R, RecordDataImpl &Record, const SourceManager &SM); + /// \brief The version of the diagnostics file. + enum { Version = 2 }; + /// \brief Language options, which can differ from one clone of this client /// to another. const LangOptions *LangOpts; @@ -464,7 +466,7 @@ void SDiagsWriter::EmitMetaBlock() { Stream.EnterSubblock(BLOCK_META, 3); Record.clear(); Record.push_back(RECORD_VERSION); - Record.push_back(VersionNumber); + Record.push_back(Version); Stream.EmitRecordWithAbbrev(Abbrevs.get(RECORD_VERSION), Record); Stream.ExitBlock(); } |