[Lldb-commits] [lldb] b621e8c - [LLDB] Fix build on windows caused by LinuxPTraceDefines_arm64sve.h

Muhammad Omair Javaid via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 21 04:48:46 PDT 2020


Author: Muhammad Omair Javaid
Date: 2020-07-21T16:47:25+05:00
New Revision: b621e8c787b3e20aa9e9dc940bfd4a792cd2a06c

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

LOG: [LLDB] Fix build on windows caused by LinuxPTraceDefines_arm64sve.h

This patch fixes build on lldb-x64-windows-ninja. The error is caused by
use of two leading underscores.

According to MSVC documentation:
In Microsoft C++, identifiers with two leading underscores are reserved
for compiler implementations.

https://docs.microsoft.com/en-us/cpp/cpp/keywords-cpp?view=vs-2019

Added: 
    

Modified: 
    lldb/source/Plugins/Process/Utility/LinuxPTraceDefines_arm64sve.h

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/Utility/LinuxPTraceDefines_arm64sve.h b/lldb/source/Plugins/Process/Utility/LinuxPTraceDefines_arm64sve.h
index 04d49bf53918..fe3aed96d859 100644
--- a/lldb/source/Plugins/Process/Utility/LinuxPTraceDefines_arm64sve.h
+++ b/lldb/source/Plugins/Process/Utility/LinuxPTraceDefines_arm64sve.h
@@ -16,7 +16,7 @@
 
 #include <stdint.h>
 
-struct _aarch64_context {
+struct aarch64_context {
   uint16_t magic;
   uint16_t size;
 };
@@ -24,9 +24,9 @@ struct _aarch64_context {
 #define SVE_MAGIC 0x53564501
 
 struct sve_context {
-  struct _aarch64_context head;
+  struct aarch64_context head;
   uint16_t vl;
-  uint16_t __reserved[3];
+  uint16_t reserved[3];
 };
 
 /*
@@ -140,7 +140,7 @@ struct user_sve_header {
   uint16_t vl;       /* current vector length */
   uint16_t max_vl;   /* maximum possible vector length */
   uint16_t flags;
-  uint16_t __reserved;
+  uint16_t reserved;
 };
 
 /* Definitions for user_sve_header.flags: */


        


More information about the lldb-commits mailing list