[llvm] r367330 - [NFC] Remove uses of LLVM_ALIGNAS
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 09:31:07 PDT 2019
Author: jfb
Date: Tue Jul 30 09:31:06 2019
New Revision: 367330
URL: http://llvm.org/viewvc/llvm-project?rev=367330&view=rev
Log:
[NFC] Remove uses of LLVM_ALIGNAS
It's not useful anymore: we mandate C++11, and already use alignas in a bunch of places.
Modified:
llvm/trunk/include/llvm/ADT/IntervalMap.h
llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
llvm/trunk/include/llvm/Support/Endian.h
Modified: llvm/trunk/include/llvm/ADT/IntervalMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/IntervalMap.h?rev=367330&r1=367329&r2=367330&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/IntervalMap.h (original)
+++ llvm/trunk/include/llvm/ADT/IntervalMap.h Tue Jul 30 09:31:06 2019
@@ -963,8 +963,8 @@ public:
private:
// The root data is either a RootLeaf or a RootBranchData instance.
- LLVM_ALIGNAS(RootLeaf) LLVM_ALIGNAS(RootBranchData)
- AlignedCharArrayUnion<RootLeaf, RootBranchData> data;
+ alignas(RootLeaf) alignas(RootBranchData)
+ AlignedCharArrayUnion<RootLeaf, RootBranchData> data;
// Tree height.
// 0: Leaves in root.
Modified: llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h?rev=367330&r1=367329&r2=367330&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h (original)
+++ llvm/trunk/include/llvm/IR/ModuleSummaryIndex.h Tue Jul 30 09:31:06 2019
@@ -119,7 +119,7 @@ class GlobalValueSummary;
using GlobalValueSummaryList = std::vector<std::unique_ptr<GlobalValueSummary>>;
-struct LLVM_ALIGNAS(8) GlobalValueSummaryInfo {
+struct alignas(8) GlobalValueSummaryInfo {
union NameOrGV {
NameOrGV(bool HaveGVs) {
if (HaveGVs)
Modified: llvm/trunk/include/llvm/Support/Endian.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Endian.h?rev=367330&r1=367329&r2=367330&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Endian.h (original)
+++ llvm/trunk/include/llvm/Support/Endian.h Tue Jul 30 09:31:06 2019
@@ -203,10 +203,8 @@ inline void writeAtBitAlignment(void *me
namespace detail {
-template<typename ValueType,
- endianness Endian,
- std::size_t Alignment,
- std::size_t ALIGN = PickAlignment<ValueType, Alignment>::value>
+template <typename ValueType, endianness Endian, std::size_t Alignment,
+ std::size_t ALIGN = PickAlignment<ValueType, Alignment>::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:
More information about the llvm-commits
mailing list