summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-11-05 00:09:57 +0000
committerTed Kremenek <kremenek@apple.com>2011-11-05 00:09:57 +0000
commit337cd2a8e2b9f386c554cdeffb8a191fe810f574 (patch)
treecc0d94251da6015bdb8a1037db68bd75b0b78979 /clang/lib/Frontend
parent868504ab9932ba72d2127b98fa38624f165695b9 (diff)
downloadbcm5719-llvm-337cd2a8e2b9f386c554cdeffb8a191fe810f574.tar.gz
bcm5719-llvm-337cd2a8e2b9f386c554cdeffb8a191fe810f574.zip
Move definition of record/block IDs for serialized diagnostics to public header.
llvm-svn: 143761
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/SerializedDiagnosticPrinter.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp b/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
index 3516ad2e7be..3f42c5fe74d 100644
--- a/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
+++ b/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
@@ -8,7 +8,6 @@
//===----------------------------------------------------------------------===//
#include <vector>
-#include "llvm/Bitcode/BitstreamWriter.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/SmallString.h"
@@ -20,6 +19,7 @@
#include "clang/Frontend/SerializedDiagnosticPrinter.h"
using namespace clang;
+using namespace clang::serialized_diags;
namespace {
@@ -130,21 +130,6 @@ private:
/// \brief Flag indicating whether or not we are in the process of
/// emitting a non-note diagnostic.
bool inNonNoteDiagnostic;
-
- enum BlockIDs {
- /// \brief The DIAG block, which acts as a container around a diagnostic.
- BLOCK_DIAG = llvm::bitc::FIRST_APPLICATION_BLOCKID,
- /// \brief The STRINGS block, which contains strings
- /// from multiple diagnostics.
- BLOCK_STRINGS
- };
-
- enum RecordIDs {
- RECORD_DIAG = 1,
- RECORD_DIAG_FLAG,
- RECORD_CATEGORY,
- RECORD_FILENAME
- };
};
} // end anonymous namespace
OpenPOWER on IntegriCloud