Index: src/IceGlobalContext.h |
diff --git a/src/IceGlobalContext.h b/src/IceGlobalContext.h |
index 2d60f4845466f879ebc50a407ca021edab29a01f..e4be36b31b3c871a66f1bb783ada3877ea5cacfc 100644 |
--- a/src/IceGlobalContext.h |
+++ b/src/IceGlobalContext.h |
@@ -482,6 +482,10 @@ public: |
return LockedPtr<StringPool>(Strings.get(), &StringsLock); |
} |
+ LockedPtr<VariableDeclarationList> getGlobals() { |
+ return LockedPtr<VariableDeclarationList>(&Globals, &InitAllocLock); |
+ } |
+ |
/// Number of function blocks that can be queued before waiting for |
/// translation |
/// threads to consume. |
@@ -612,6 +616,8 @@ private: |
LockedPtr<VariableDeclarationList> _(&Globals, &InitAllocLock); |
if (Globls != nullptr) { |
Globals.merge(Globls.get()); |
+ if (!BuildDefs::minimal() && Instrumentor != nullptr) |
+ Instrumentor->setHasSeenGlobals(); |
} |
} |