[ASan] Print the parsed ASAN_OPTIONS for verbosity>0.

Move the flags around slightly.

llvm-svn: 152929
This commit is contained in:
Alexander Potapenko 2012-03-16 16:38:31 +00:00
parent 3ec2abc5fb
commit fa391a7df2
1 changed files with 7 additions and 3 deletions

View File

@ -452,13 +452,17 @@ void __asan_init() {
"allow_user_poisoning=", 1);
FLAG_sleep_before_dying = IntFlagValue(options, "sleep_before_dying=", 0);
FLAG_quarantine_size = IntFlagValue(options, "quarantine_size=",
(ASAN_LOW_MEMORY) ? 1UL << 24 : 1UL << 28);
if (FLAG_v) {
Report("Parsed ASAN_OPTIONS: %s\n", options);
}
if (FLAG_atexit) {
Atexit(asan_atexit);
}
FLAG_quarantine_size = IntFlagValue(options, "quarantine_size=",
(ASAN_LOW_MEMORY) ? 1UL << 24 : 1UL << 28);
// interceptors
InitializeAsanInterceptors();