llvm.org GIT mirror llvm / 2848178
[llvm-exegesis] benchmarkMain(): less cryptic error if built w/o libpfm Wanted to check if inablility to measure latency of CMOV32rm is a regression from D60041 / D60138, but unable to do that because the llvm-exegesis-{8,9} from debian sid fails with that cryptic, unhelpful error. I suspect this will be a better error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357900 91177308-0d34-0410-b5e6-96231b3b80d8 Roman Lebedev 1 year, 7 months ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
358358 }
359359
360360 void benchmarkMain() {
361 #ifndef HAVE_LIBPFM
362 llvm::report_fatal_error(
363 "benchmarking unavaliable, LLVM was built without libpfm.");
364 #endif
365
361366 if (exegesis::pfm::pfmInitialize())
362367 llvm::report_fatal_error("cannot initialize libpfm");
363368