From: Alp Toker Date: Mon, 9 Dec 2013 00:12:56 +0000 (+0000) Subject: Eliminate the last remaining header NDEBUG X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40c87425c0f8258432b3dafb7f8e9f41020a0f48;p=clang Eliminate the last remaining header NDEBUG VerifyDiagnosticConsumer is long-lived so the two additional members shouldn't have any impact on release builds. The clang headers are now free of NDEBUG conditionals. Let's keep it that way! Note that they're not yet structurally stable, pending a few fixes in the LLVM core headers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196739 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Frontend/VerifyDiagnosticConsumer.h b/include/clang/Frontend/VerifyDiagnosticConsumer.h index 95d7752517..33d692a402 100644 --- a/include/clang/Frontend/VerifyDiagnosticConsumer.h +++ b/include/clang/Frontend/VerifyDiagnosticConsumer.h @@ -217,24 +217,19 @@ private: SrcManager = &SM; } -#ifndef NDEBUG + // These facilities are used for validation in debug builds. class UnparsedFileStatus { llvm::PointerIntPair Data; - public: UnparsedFileStatus(const FileEntry *File, bool FoundDirectives) : Data(File, FoundDirectives) {} - const FileEntry *getFile() const { return Data.getPointer(); } bool foundDirectives() const { return Data.getInt(); } }; - typedef llvm::DenseMap ParsedFilesMap; typedef llvm::DenseMap UnparsedFilesMap; - ParsedFilesMap ParsedFiles; UnparsedFilesMap UnparsedFiles; -#endif public: /// Create a new verifying diagnostic client, which will issue errors to