<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Oct 12, 2015, at 8:35 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com" class="">chisophugis@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Do we emit an error if this option is passed if the compiler is not clang?</div></div></blockquote><div><br class=""></div>We do now :-)</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">Also, please update <a href="http://llvm.org/docs/CMake.html#llvm-specific-variables" class="">http://llvm.org/docs/CMake.html#llvm-specific-variables</a> (docs/CMake.rst)</div></div></div></blockquote><div><br class=""></div>Updated r250150.</div><div><br class=""></div><div>Thanks,</div><div>-Chris</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">-- Sean Silva</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Oct 12, 2015 at 2:13 PM, Chris Bieneman via llvm-commits <span dir="ltr" class=""><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank" class="">llvm-commits@lists.llvm.org</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: cbieneman<br class="">
Date: Mon Oct 12 16:13:20 2015<br class="">
New Revision: 250108<br class="">
<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=250108&view=rev" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project?rev=250108&view=rev</a><br class="">
Log:<br class="">
[CMake] Adding support for passing in profiling data.<br class="">
<br class="">
Adds LLVM_PROFDATA_FILE option to allow specifying a profile data file to be used during compilation of LLVM and subprojects.<br class="">
<br class="">
Modified:<br class="">
    llvm/trunk/CMakeLists.txt<br class="">
<br class="">
Modified: llvm/trunk/CMakeLists.txt<br class="">
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=250108&r1=250107&r2=250108&view=diff" rel="noreferrer" target="_blank" class="">http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=250108&r1=250107&r2=250108&view=diff</a><br class="">
==============================================================================<br class="">
--- llvm/trunk/CMakeLists.txt (original)<br class="">
+++ llvm/trunk/CMakeLists.txt Mon Oct 12 16:13:20 2015<br class="">
@@ -590,6 +590,13 @@ endif( ${CMAKE_SYSTEM_NAME} MATCHES SunO<br class="">
 # use export_executable_symbols(target).<br class="">
 set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")<br class="">
<br class="">
+set(LLVM_PROFDATA_FILE "" CACHE FILEPATH<br class="">
+  "Profiling data file to use when compiling in order to improve runtime performance.")<br class="">
+<br class="">
+if(LLVM_PROFDATA_FILE AND EXISTS ${LLVM_PROFDATA_FILE})<br class="">
+  add_definitions("-fprofile-instr-use=${LLVM_PROFDATA_FILE}")<br class="">
+endif()<br class="">
+<br class="">
 include(AddLLVM)<br class="">
 include(TableGen)<br class="">
<br class="">
<br class="">
<br class="">
_______________________________________________<br class="">
llvm-commits mailing list<br class="">
<a href="mailto:llvm-commits@lists.llvm.org" class="">llvm-commits@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br class="">
</blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>