[compiler-rt] af8b14c - tsan: remove unnecessary enum values (NFC)
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 01:44:03 PDT 2021
Author: Dmitry Vyukov
Date: 2021-09-23T10:43:58+02:00
New Revision: af8b14c278c2cb5309562b6e3fa55333c2889d86
URL: https://github.com/llvm/llvm-project/commit/af8b14c278c2cb5309562b6e3fa55333c2889d86
DIFF: https://github.com/llvm/llvm-project/commit/af8b14c278c2cb5309562b6e3fa55333c2889d86.diff
LOG: tsan: remove unnecessary enum values (NFC)
Remove unnecessary enum values in the memory profiler.
There is no point in spelling them, it can only lead to bugs
and larger diffs when values are added/removed.
Reviewed By: melver
Differential Revision: https://reviews.llvm.org/D110263
Added:
Modified:
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
index 45fe7450b47cd..7bcde3c515fef 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
+++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
@@ -89,15 +89,15 @@ static uptr longjmp_xor_key;
uptr vmaSize;
enum {
- MemTotal = 0,
- MemShadow = 1,
- MemMeta = 2,
- MemFile = 3,
- MemMmap = 4,
- MemTrace = 5,
- MemHeap = 6,
- MemOther = 7,
- MemCount = 8,
+ MemTotal,
+ MemShadow,
+ MemMeta,
+ MemFile,
+ MemMmap,
+ MemTrace,
+ MemHeap,
+ MemOther,
+ MemCount,
};
void FillProfileCallback(uptr p, uptr rss, bool file,
More information about the llvm-commits
mailing list