Index: src/IceGlobalContext.cpp |
diff --git a/src/IceGlobalContext.cpp b/src/IceGlobalContext.cpp |
index 058825b79dc194647e46f2f937eb674b21d14ea7..0d53127dd114cf1e2f648a5c236881f5187cf601 100644 |
--- a/src/IceGlobalContext.cpp |
+++ b/src/IceGlobalContext.cpp |
@@ -486,6 +486,10 @@ void GlobalContext::lowerGlobals(const std::string &SectionSuffix) { |
RandomShuffle(Globals.begin(), Globals.end(), |
[&RNG](int N) { return (uint32_t)RNG.next(N); }); |
} |
+ |
+ if (!BuildDefs::minimal() && Instrumentor) |
+ Instrumentor->instrumentGlobals(); |
+ |
DataLowering->lowerGlobals(Globals, SectionSuffix); |
if (ProfileBlockInfos.empty() && DisposeGlobalVariablesAfterLowering) { |
Globals.clearAndPurge(); |