[llvm] 516397e - [ORC] More attempts to fix Windows bots after d3d9f7caf966.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 3 20:35:55 PDT 2022


Author: Lang Hames
Date: 2022-10-03T20:31:31-07:00
New Revision: 516397e1443e2e3ab7f38a5cb7e4cd389a6f6e24

URL: https://github.com/llvm/llvm-project/commit/516397e1443e2e3ab7f38a5cb7e4cd389a6f6e24
DIFF: https://github.com/llvm/llvm-project/commit/516397e1443e2e3ab7f38a5cb7e4cd389a6f6e24.diff

LOG: [ORC] More attempts to fix Windows bots after d3d9f7caf966.

Move getWindowsProtectionFlags inside namespace to make MemProt type accessible.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp b/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
index 671722decc57..b4b082ec0872 100644
--- a/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
@@ -21,6 +21,10 @@
 #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)


        


More information about the llvm-commits mailing list