summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-10-18 19:39:23 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-10-18 19:39:23 +0000
commitee042234ae183c4defc2d036e2c2be1e16640a8c (patch)
treeaee1f93a9367d82e0852d28d609dd55b7a13b126 /llvm/lib/Transforms
parent2a2cda58f87d272c0c68c0d9f4b4d611f4aa44aa (diff)
downloadbcm5719-llvm-ee042234ae183c4defc2d036e2c2be1e16640a8c.tar.gz
bcm5719-llvm-ee042234ae183c4defc2d036e2c2be1e16640a8c.zip
[esan] Remove global variable.
It's not thread safe and completely unnecessary. llvm-svn: 284520
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
index 3bd666be7b9..05eba6c4dc6 100644
--- a/llvm/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
@@ -102,7 +102,7 @@ static const char *const EsanWhichToolName = "__esan_which_tool";
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
OpenPOWER on IntegriCloud