From 557f7f88ba686886278f83159b7a629c24a47176 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 13 Mar 2009 22:53:41 +0000 Subject: Add (hidden) TableGen command option '-clang-component' which specifies the component's warnings to process for '-gen-clang-diags-defs'. Also, when the component is specified, generate a '#if' prologue at the top of the generated .def file (to match the current files). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66975 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/ClangDiagnosticsEmitter.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/TableGen/ClangDiagnosticsEmitter.h') diff --git a/utils/TableGen/ClangDiagnosticsEmitter.h b/utils/TableGen/ClangDiagnosticsEmitter.h index 9397970..bedfe5a 100644 --- a/utils/TableGen/ClangDiagnosticsEmitter.h +++ b/utils/TableGen/ClangDiagnosticsEmitter.h @@ -23,8 +23,10 @@ namespace llvm { /// class ClangDiagsDefsEmitter : public TableGenBackend { RecordKeeper &Records; + const std::string& Component; public: - explicit ClangDiagsDefsEmitter(RecordKeeper &R) : Records(R) {} + explicit ClangDiagsDefsEmitter(RecordKeeper &R, const std::string& component) + : Records(R), Component(component) {} // run - Output the .def file contents void run(std::ostream &OS); -- cgit v1.1