From dcab8e60c5b372afe898259e4e282e99208e33cd Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 20 Apr 2022 12:25:41 +0200 Subject: [PATCH] [Support] Remove unused LLVM_PTR_SIZE macro 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 | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 65345ba..6708b7c 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/include/llvm/Support/Compiler.h @@ -396,22 +396,6 @@ # 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) -- 2.7.4