Home
last modified time | relevance | path

Searched refs:GlobalContext (Results 1 – 1 of 1) sorted by relevance

/frameworks/compile/libbcc/lib/
DBCCContext.cpp27 static BCCContext *GlobalContext = nullptr; variable
30 if (GlobalContext == nullptr) { in GetOrCreateGlobalContext()
31 GlobalContext = new (std::nothrow) BCCContext(); in GetOrCreateGlobalContext()
32 if (GlobalContext == nullptr) { in GetOrCreateGlobalContext()
36 return GlobalContext; in GetOrCreateGlobalContext()
40 delete GlobalContext; in DestroyGlobalContext()
41 GlobalContext = nullptr; in DestroyGlobalContext()
48 if (this == GlobalContext) { in ~BCCContext()
51 GlobalContext = nullptr; in ~BCCContext()