[Runtime] Add the inline attribute to CRGet/SetCrashLogMessage functions to silence warnings about unused functions.

rdar://problem/39579513
This commit is contained in:
Mike Ash
2018-04-20 15:52:46 -04:00
parent 14a4e6fedd
commit ba506a90fc

View File

@@ -46,19 +46,19 @@ extern struct crashreporter_annotations_t gCRAnnotations;
}
LLVM_ATTRIBUTE_ALWAYS_INLINE
static void CRSetCrashLogMessage(const char *message) {
static inline void CRSetCrashLogMessage(const char *message) {
gCRAnnotations.message = reinterpret_cast<uint64_t>(message);
}
LLVM_ATTRIBUTE_ALWAYS_INLINE
static const char *CRGetCrashLogMessage() {
static inline const char *CRGetCrashLogMessage() {
return reinterpret_cast<const char *>(gCRAnnotations.message);
}
#else
LLVM_ATTRIBUTE_ALWAYS_INLINE
static void CRSetCrashLogMessage(const char *) {}
static inline void CRSetCrashLogMessage(const char *) {}
#endif