[Lldb-commits] [lldb] 9f9dd6b - Wrap local type declarations in anonymous namespace to fix modules build.

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 4 09:30:08 PST 2024


Author: Adrian Prantl
Date: 2024-01-04T09:30:00-08:00
New Revision: 9f9dd6be0d21a156dcfee01ebbd571eca79b08bd

URL: https://github.com/llvm/llvm-project/commit/9f9dd6be0d21a156dcfee01ebbd571eca79b08bd
DIFF: https://github.com/llvm/llvm-project/commit/9f9dd6be0d21a156dcfee01ebbd571eca79b08bd.diff

LOG: Wrap local type declarations in anonymous namespace to fix modules build.

Added: 
    

Modified: 
    lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
index 5326a73166e72e..1688fb27430a7a 100644
--- a/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
+++ b/lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
@@ -35,6 +35,7 @@ using namespace lldb_private;
 
 LLDB_PLUGIN_DEFINE(JITLoaderGDB)
 
+namespace {
 // Debug Interface Structures
 enum jit_actions_t { JIT_NOACTION = 0, JIT_REGISTER_FN, JIT_UNREGISTER_FN };
 
@@ -52,7 +53,6 @@ template <typename ptr_t> struct jit_descriptor {
   ptr_t first_entry;    // pointer
 };
 
-namespace {
 enum EnableJITLoaderGDB {
   eEnableJITLoaderGDBDefault,
   eEnableJITLoaderGDBOn,


        


More information about the lldb-commits mailing list