[PATCH] Add lib/profile to cc_kext so we can use PGO for the kernel.

larry at elder-gods.org larry at elder-gods.org
Wed Dec 10 11:31:58 PST 2014


From: Lawrence D'Anna <lawrence_danna at apple.com>

---
 make/platform/clang_darwin.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/make/platform/clang_darwin.mk b/make/platform/clang_darwin.mk
index 6ed3230..012d4f8 100644
--- a/make/platform/clang_darwin.mk
+++ b/make/platform/clang_darwin.mk
@@ -257,7 +257,15 @@ FUNCTIONS.asan_iossim_dynamic := $(AsanFunctions) $(AsanCXXFunctions) \
 FUNCTIONS.ubsan_osx := $(UbsanFunctions) $(UbsanCXXFunctions) \
                        $(SanitizerCommonFunctions)
 
+
+
+CCKEXT_PROFILE_FUNCTIONS := \
+	InstrProfiling \
+	InstrProfilingBuffer \
+	InstrProfilingPlatformDarwin
+
 CCKEXT_COMMON_FUNCTIONS := \
+	$(CCKEXT_PROFILE_FUNCTIONS) \
 	absvdi2 \
 	absvsi2 \
 	addvdi3 \
-- 
1.9.3 (Apple Git-50)




More information about the llvm-commits mailing list