From: JF Bastien Date: Tue, 30 Jul 2019 16:31:06 +0000 (+0000) Subject: [NFC] Remove uses of LLVM_ALIGNAS X-Git-Tag: llvmorg-11-init~13280 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89905168690ba20d8c635156e32443b481865d49;p=platform%2Fupstream%2Fllvm.git [NFC] Remove uses of LLVM_ALIGNAS It's not useful anymore: we mandate C++11, and already use alignas in a bunch of places. llvm-svn: 367330 --- diff --git a/llvm/include/llvm/ADT/IntervalMap.h b/llvm/include/llvm/ADT/IntervalMap.h index 12828c4..a02876e 100644 --- a/llvm/include/llvm/ADT/IntervalMap.h +++ b/llvm/include/llvm/ADT/IntervalMap.h @@ -963,8 +963,8 @@ public: private: // The root data is either a RootLeaf or a RootBranchData instance. - LLVM_ALIGNAS(RootLeaf) LLVM_ALIGNAS(RootBranchData) - AlignedCharArrayUnion data; + alignas(RootLeaf) alignas(RootBranchData) + AlignedCharArrayUnion data; // Tree height. // 0: Leaves in root. diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h index aacf8cf..1341692 100644 --- a/llvm/include/llvm/IR/ModuleSummaryIndex.h +++ b/llvm/include/llvm/IR/ModuleSummaryIndex.h @@ -119,7 +119,7 @@ class GlobalValueSummary; using GlobalValueSummaryList = std::vector>; -struct LLVM_ALIGNAS(8) GlobalValueSummaryInfo { +struct alignas(8) GlobalValueSummaryInfo { union NameOrGV { NameOrGV(bool HaveGVs) { if (HaveGVs) diff --git a/llvm/include/llvm/Support/Endian.h b/llvm/include/llvm/Support/Endian.h index e5489da..87aeced 100644 --- a/llvm/include/llvm/Support/Endian.h +++ b/llvm/include/llvm/Support/Endian.h @@ -203,10 +203,8 @@ inline void writeAtBitAlignment(void *memory, value_type value, namespace detail { -template::value> +template ::value> struct packed_endian_specific_integral { using value_type = ValueType; static constexpr endianness endian = Endian; @@ -248,7 +246,7 @@ struct packed_endian_specific_integral { private: struct { - LLVM_ALIGNAS(ALIGN) char buffer[sizeof(value_type)]; + alignas(ALIGN) char buffer[sizeof(value_type)]; } Value; public: