Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit dd8d498

Browse files
committed
[asan] minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145966 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 96bdefa commit dd8d498

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

lib/asan/asan_internal.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ extern size_t FLAG_quarantine_size;
9191
extern int FLAG_demangle;
9292
extern bool FLAG_symbolize;
9393
extern int FLAG_v;
94-
extern bool FLAG_mt;
9594
extern size_t FLAG_redzone;
9695
extern int FLAG_debug;
9796
extern bool FLAG_poison_shadow;
@@ -177,7 +176,6 @@ class LowLevelAllocator {
177176

178177
// -------------------------- Atomic ---------------- {{{1
179178
static inline int AtomicInc(int *a) {
180-
if (!FLAG_mt) return ++(*a);
181179
#ifdef ANDROID
182180
return __atomic_inc(a) + 1;
183181
#else
@@ -186,7 +184,6 @@ static inline int AtomicInc(int *a) {
186184
}
187185

188186
static inline int AtomicDec(int *a) {
189-
if (!FLAG_mt) return --(*a);
190187
#ifdef ANDROID
191188
return __atomic_dec(a) - 1;
192189
#else

lib/asan/asan_rtl.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ static int FLAG_atexit;
5757
bool FLAG_fast_unwind = true;
5858

5959
size_t FLAG_redzone; // power of two, >= 32
60-
bool FLAG_mt; // set to 0 if you have only one thread.
6160
size_t FLAG_quarantine_size;
6261
int FLAG_demangle;
6362
bool FLAG_symbolize;
@@ -665,7 +664,6 @@ void __asan_init() {
665664
FLAG_debug = IntFlagValue(options, "debug=", 0);
666665
FLAG_replace_cfallocator = IntFlagValue(options, "replace_cfallocator=", 1);
667666
FLAG_fast_unwind = IntFlagValue(options, "fast_unwind=", 1);
668-
FLAG_mt = IntFlagValue(options, "mt=", 1);
669667
FLAG_replace_str = IntFlagValue(options, "replace_str=", 1);
670668
FLAG_replace_intrin = IntFlagValue(options, "replace_intrin=", 0);
671669
FLAG_use_fake_stack = IntFlagValue(options, "use_fake_stack=", 1);

0 commit comments

Comments
 (0)