[Support] Remove unused LLVM_PTR_SIZE macro
authorNikita Popov <npopov@redhat.com>
Wed, 20 Apr 2022 10:25:41 +0000 (12:25 +0200)
committerNikita Popov <npopov@redhat.com>
Wed, 20 Apr 2022 10:27:37 +0000 (12:27 +0200)
This was used for LLVM_ALIGNAS() arguments in the past, but has
since been superseded by plain alignas() which also accepts a type.

llvm/include/llvm/Support/Compiler.h

index 65345ba0c7f68a57d60c84ee3006749581dd2161..6708b7cc95cc81dd6e36ce1d655fe61d55b0c052 100644 (file)
 # define LLVM_PACKED_END   _Pragma("pack(pop)")
 #endif
 
-/// \macro LLVM_PTR_SIZE
-/// A constant integer equivalent to the value of sizeof(void*).
-/// Generally used in combination with alignas or when doing computation in the
-/// preprocessor.
-#ifdef __SIZEOF_POINTER__
-# define LLVM_PTR_SIZE __SIZEOF_POINTER__
-#elif defined(_WIN64)
-# define LLVM_PTR_SIZE 8
-#elif defined(_WIN32)
-# define LLVM_PTR_SIZE 4
-#elif defined(_MSC_VER)
-# error "could not determine LLVM_PTR_SIZE as a constant int for MSVC"
-#else
-# define LLVM_PTR_SIZE sizeof(void *)
-#endif
-
 /// \macro LLVM_MEMORY_SANITIZER_BUILD
 /// Whether LLVM itself is built with MemorySanitizer instrumentation.
 #if __has_feature(memory_sanitizer)