Also add build file for dependency llvm/lib/XRay.
Needed for check-llvm.
(yaml-bench is an llvm/util, not an llvm/tool.)
Differential Revision: https://reviews.llvm.org/D56163
llvm-svn: 350211
"//llvm/tools/llvm-rc",
"//llvm/tools/llvm-rtdyld",
"//llvm/tools/llvm-undname",
+ "//llvm/tools/llvm-xray",
+ "//llvm/tools/sancov",
+ "//llvm/tools/sanstats",
+ "//llvm/tools/verify-uselistorder",
+ "//llvm/utils/yaml-bench",
]
if (clang_enable_arcmt) {
deps += [
--- /dev/null
+static_library("XRay") {
+ output_name = "LLVMXRay"
+ deps = [
+ "//llvm/lib/Object",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "BlockIndexer.cpp",
+ "BlockPrinter.cpp",
+ "BlockVerifier.cpp",
+ "FDRRecordProducer.cpp",
+ "FDRRecords.cpp",
+ "FDRTraceExpander.cpp",
+ "FDRTraceWriter.cpp",
+ "FileHeaderReader.cpp",
+ "InstrumentationMap.cpp",
+ "LogBuilderConsumer.cpp",
+ "Profile.cpp",
+ "RecordInitializer.cpp",
+ "RecordPrinter.cpp",
+ "Trace.cpp",
+ ]
+}
--- /dev/null
+executable("llvm-xray") {
+ deps = [
+ "//llvm/lib/DebugInfo/DWARF",
+ "//llvm/lib/DebugInfo/Symbolize",
+ "//llvm/lib/Object",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target:TargetsToBuild",
+ "//llvm/lib/XRay",
+ ]
+ sources = [
+ "func-id-helper.cpp",
+ "llvm-xray.cpp",
+ "xray-account.cpp",
+ "xray-color-helper.cpp",
+ "xray-converter.cpp",
+ "xray-extract.cpp",
+ "xray-fdr-dump.cpp",
+ "xray-graph-diff.cpp",
+ "xray-graph.cpp",
+ "xray-registry.cpp",
+ "xray-stacks.cpp",
+ ]
+}
--- /dev/null
+executable("sancov") {
+ deps = [
+ "//llvm/lib/DebugInfo/DWARF",
+ "//llvm/lib/DebugInfo/PDB",
+ "//llvm/lib/DebugInfo/Symbolize",
+ "//llvm/lib/MC",
+ "//llvm/lib/MC/MCDisassembler",
+ "//llvm/lib/Object",
+ "//llvm/lib/Support",
+ "//llvm/lib/Target:AllTargetsAsmPrinters",
+ "//llvm/lib/Target:AllTargetsDescs",
+ "//llvm/lib/Target:AllTargetsDisassemblers",
+ "//llvm/lib/Target:AllTargetsInfos",
+ ]
+ sources = [
+ "sancov.cpp",
+ ]
+}
--- /dev/null
+executable("sanstats") {
+ deps = [
+ "//llvm/lib/DebugInfo/Symbolize",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "sanstats.cpp",
+ ]
+}
--- /dev/null
+executable("verify-uselistorder") {
+ deps = [
+ "//llvm/lib/AsmParser",
+ "//llvm/lib/Bitcode/Reader",
+ "//llvm/lib/Bitcode/Writer",
+ "//llvm/lib/IR",
+ "//llvm/lib/IRReader",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "verify-uselistorder.cpp",
+ ]
+}
--- /dev/null
+executable("yaml-bench") {
+ deps = [
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "YAMLBench.cpp",
+ ]
+}