[CMake] LLVM_PROFDATA_FILE only works if you're using clang, so we should error out...
[oota-llvm.git] / docs / CMake.rst
index 49657ba2dd8699449152114ab03dc2f67585150a..0810bed90d4f5e532fe67bb0633e34ca6f299596 100644 (file)
@@ -334,6 +334,10 @@ LLVM-specific variables
 **LLVM_USE_OPROFILE**:BOOL
   Enable building OProfile JIT support. Defaults to OFF.
 
+**LLVM_PROFDATA_FILE**:PATH
+  Path to a profdata file to pass into clang's -fprofile-instr-use flag. This
+  can only be specified if you're building with clang.
+
 **LLVM_USE_INTEL_JITEVENTS**:BOOL
   Enable building support for Intel JIT Events API. Defaults to OFF.