@@ -78,19 +78,19 @@ using namespace Intel::OpenCL::ClangFE;
7878
7979llvm::ManagedStatic<llvm::sys::SmartMutex<true >> compileMutex;
8080
81- void CommonClangTerminate () { llvm::llvm_shutdown (); }
81+ void OpenCLClangTerminate () { llvm::llvm_shutdown (); }
8282
8383// This function mustn't be invoked from a static object constructor,
8484// from a DllMain function (Windows specific), or from a function
8585// w\ __attribute__ ((constructor)) (Linux specific).
86- void CommonClangInitialize () {
87- // CommonClangTerminate calls llvm_shutdown to deallocate resources used
86+ void OpenCLClangInitialize () {
87+ // OpenCLClangTerminate calls llvm_shutdown to deallocate resources used
8888 // by LLVM libraries. llvm_shutdown uses static mutex to make it safe for
8989 // multi-threaded envirounment and LLVM libraries user is expected call
9090 // llvm_shutdown before static object are destroyed, so we use atexit to
9191 // satisfy this requirement.
9292 llvm::once_flag OnceFlag;
93- llvm::call_once (OnceFlag, []() { atexit (CommonClangTerminate ); });
93+ llvm::call_once (OnceFlag, []() { atexit (OpenCLClangTerminate ); });
9494}
9595
9696static bool GetHeaders (std::vector<Resource> &Result) {
@@ -190,7 +190,7 @@ Compile(const char *pszProgramSource, const char **pInputHeaders,
190190 PrintCompileOptions (pszOptions, pszOptionsEx, pszOpenCLVer, pszProgramSource);
191191
192192 // Lazy initialization
193- CommonClangInitialize ();
193+ OpenCLClangInitialize ();
194194
195195 try {
196196#ifdef _WIN32
0 commit comments