[llvm] r284520 - [esan] Remove global variable.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 12:39:24 PDT 2016
Author: d0k
Date: Tue Oct 18 14:39:23 2016
New Revision: 284520
URL: http://llvm.org/viewvc/llvm-project?rev=284520&view=rev
Log:
[esan] Remove global variable.
It's not thread safe and completely unnecessary.
Modified:
llvm/trunk/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp?rev=284520&r1=284519&r2=284520&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp Tue Oct 18 14:39:23 2016
@@ -102,7 +102,7 @@ static const char *const EsanWhichToolNa
struct ShadowMemoryParams {
uint64_t ShadowMask;
uint64_t ShadowOffs[3];
-} ShadowParams;
+};
static const ShadowMemoryParams ShadowParams47 = {
0x00000fffffffffffull,
@@ -230,6 +230,7 @@ private:
// Remember the counter variable for each struct type to avoid
// recomputing the variable name later during instrumentation.
std::map<Type *, GlobalVariable *> StructTyMap;
+ ShadowMemoryParams ShadowParams;
};
} // namespace
More information about the llvm-commits
mailing list