forked from OSchip/llvm-project
[compiler-rt] Use NOINLE to shrink stack frames
llvm-svn: 308654
This commit is contained in:
parent
a763be3d5f
commit
fddf535d48
|
@ -229,8 +229,10 @@ static void CallPrintfAndReportCallback(const char *str) {
|
|||
PrintfAndReportCallback(str);
|
||||
}
|
||||
|
||||
static void SharedPrintfCodeNoBuffer(bool append_pid, char *local_buffer,
|
||||
int buffer_size, const char *format,
|
||||
static void NOINLINE SharedPrintfCodeNoBuffer(bool append_pid,
|
||||
char *local_buffer,
|
||||
int buffer_size,
|
||||
const char *format,
|
||||
va_list args) {
|
||||
va_list args2;
|
||||
va_copy(args2, args);
|
||||
|
@ -286,7 +288,7 @@ static void SharedPrintfCodeNoBuffer(bool append_pid, char *local_buffer,
|
|||
va_end(args2);
|
||||
}
|
||||
|
||||
static void SharedPrintfCode(bool append_pid, const char *format,
|
||||
static void NOINLINE SharedPrintfCode(bool append_pid, const char *format,
|
||||
va_list args) {
|
||||
// |local_buffer| is small enough not to overflow the stack and/or violate
|
||||
// the stack limit enforced by TSan (-Wframe-larger-than=512). On the other
|
||||
|
|
Loading…
Reference in New Issue