summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorJF Bastien <jfbastien@apple.com>2019-07-30 16:31:06 +0000
committerJF Bastien <jfbastien@apple.com>2019-07-30 16:31:06 +0000
commit89905168690ba20d8c635156e32443b481865d49 (patch)
tree120f0960325a74209ee4fcf9fd4683d365b62584 /llvm
parent0d6615cc1911baaa53fb0141a288b2cd7c072a13 (diff)
downloadbcm5719-llvm-89905168690ba20d8c635156e32443b481865d49.tar.gz
bcm5719-llvm-89905168690ba20d8c635156e32443b481865d49.zip
[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
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/ADT/IntervalMap.h4
-rw-r--r--llvm/include/llvm/IR/ModuleSummaryIndex.h2
-rw-r--r--llvm/include/llvm/Support/Endian.h8
3 files changed, 6 insertions, 8 deletions
diff --git a/llvm/include/llvm/ADT/IntervalMap.h b/llvm/include/llvm/ADT/IntervalMap.h
index 12828c4cfda..a02876ee77f 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<RootLeaf, RootBranchData> data;
+ alignas(RootLeaf) alignas(RootBranchData)
+ AlignedCharArrayUnion<RootLeaf, RootBranchData> data;
// Tree height.
// 0: Leaves in root.
diff --git a/llvm/include/llvm/IR/ModuleSummaryIndex.h b/llvm/include/llvm/IR/ModuleSummaryIndex.h
index aacf8cfc089..1341692a560 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<std::unique_ptr<GlobalValueSummary>>;
-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 e5489da130d..87aecedd3a4 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<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:
OpenPOWER on IntegriCloud