[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
This commit is contained in:
parent
0d6615cc19
commit
8990516869
|
@ -963,8 +963,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// The root data is either a RootLeaf or a RootBranchData instance.
|
// The root data is either a RootLeaf or a RootBranchData instance.
|
||||||
LLVM_ALIGNAS(RootLeaf) LLVM_ALIGNAS(RootBranchData)
|
alignas(RootLeaf) alignas(RootBranchData)
|
||||||
AlignedCharArrayUnion<RootLeaf, RootBranchData> data;
|
AlignedCharArrayUnion<RootLeaf, RootBranchData> data;
|
||||||
|
|
||||||
// Tree height.
|
// Tree height.
|
||||||
// 0: Leaves in root.
|
// 0: Leaves in root.
|
||||||
|
|
|
@ -119,7 +119,7 @@ class GlobalValueSummary;
|
||||||
|
|
||||||
using GlobalValueSummaryList = std::vector<std::unique_ptr<GlobalValueSummary>>;
|
using GlobalValueSummaryList = std::vector<std::unique_ptr<GlobalValueSummary>>;
|
||||||
|
|
||||||
struct LLVM_ALIGNAS(8) GlobalValueSummaryInfo {
|
struct alignas(8) GlobalValueSummaryInfo {
|
||||||
union NameOrGV {
|
union NameOrGV {
|
||||||
NameOrGV(bool HaveGVs) {
|
NameOrGV(bool HaveGVs) {
|
||||||
if (HaveGVs)
|
if (HaveGVs)
|
||||||
|
|
|
@ -203,10 +203,8 @@ inline void writeAtBitAlignment(void *memory, value_type value,
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
template<typename ValueType,
|
template <typename ValueType, endianness Endian, std::size_t Alignment,
|
||||||
endianness Endian,
|
std::size_t ALIGN = PickAlignment<ValueType, Alignment>::value>
|
||||||
std::size_t Alignment,
|
|
||||||
std::size_t ALIGN = PickAlignment<ValueType, Alignment>::value>
|
|
||||||
struct packed_endian_specific_integral {
|
struct packed_endian_specific_integral {
|
||||||
using value_type = ValueType;
|
using value_type = ValueType;
|
||||||
static constexpr endianness endian = Endian;
|
static constexpr endianness endian = Endian;
|
||||||
|
@ -248,7 +246,7 @@ struct packed_endian_specific_integral {
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct {
|
struct {
|
||||||
LLVM_ALIGNAS(ALIGN) char buffer[sizeof(value_type)];
|
alignas(ALIGN) char buffer[sizeof(value_type)];
|
||||||
} Value;
|
} Value;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue