[ORC] More attempts to fix Windows bots after d3d9f7caf966.
authorLang Hames <lhames@gmail.com>
Tue, 4 Oct 2022 03:31:31 +0000 (20:31 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 4 Oct 2022 03:31:31 +0000 (20:31 -0700)
Move getWindowsProtectionFlags inside namespace to make MemProt type accessible.

llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp

index 671722d..b4b082e 100644 (file)
 #include <unistd.h>
 #endif
 
+namespace llvm {
+namespace orc {
+namespace rt_bootstrap {
+
 #if defined(_WIN32)
 static DWORD getWindowsProtectionFlags(MemProt MP) {
   if (MP == MemProt::Read)
@@ -41,10 +45,6 @@ static DWORD getWindowsProtectionFlags(MemProt MP) {
 }
 #endif
 
-namespace llvm {
-namespace orc {
-namespace rt_bootstrap {
-
 Expected<std::pair<ExecutorAddr, std::string>>
 ExecutorSharedMemoryMapperService::reserve(uint64_t Size) {
 #if (defined(LLVM_ON_UNIX) && !defined(__ANDROID__)) || defined(_WIN32)