/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/utils/TableGen/ClangDataCollectorsEmitter.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | #include "TableGenBackends.h" |
2 | | #include "llvm/TableGen/Record.h" |
3 | | #include "llvm/TableGen/TableGenBackend.h" |
4 | | |
5 | | using namespace llvm; |
6 | | |
7 | 0 | void clang::EmitClangDataCollectors(RecordKeeper &RK, raw_ostream &OS) { |
8 | 0 | const auto &Defs = RK.getClasses(); |
9 | 0 | for (const auto &Entry : Defs) { |
10 | 0 | Record &R = *Entry.second; |
11 | 0 | OS << "DEF_ADD_DATA(" << R.getName() << ", {\n"; |
12 | 0 | auto Code = R.getValue("Code")->getValue(); |
13 | 0 | OS << Code->getAsUnquotedString() << "}\n)"; |
14 | 0 | OS << "\n"; |
15 | 0 | } |
16 | 0 | OS << "#undef DEF_ADD_DATA\n"; |
17 | 0 | } |