mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 16:31:33 +00:00
Mark empty default constructors as =default if it makes the type POD
NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7ba137f94b
commit
822147fcb2
@ -30,7 +30,7 @@ public:
|
|||||||
|
|
||||||
class HandleBase {
|
class HandleBase {
|
||||||
public:
|
public:
|
||||||
HandleBase() {}
|
HandleBase() = default;
|
||||||
explicit HandleBase(const DebugEpochBase *) {}
|
explicit HandleBase(const DebugEpochBase *) {}
|
||||||
bool isHandleInSync() const { return true; }
|
bool isHandleInSync() const { return true; }
|
||||||
const void *getEpochAddress() const { return nullptr; }
|
const void *getEpochAddress() const { return nullptr; }
|
||||||
|
@ -75,7 +75,7 @@ class hash_code {
|
|||||||
public:
|
public:
|
||||||
/// \brief Default construct a hash_code.
|
/// \brief Default construct a hash_code.
|
||||||
/// Note that this leaves the value uninitialized.
|
/// Note that this leaves the value uninitialized.
|
||||||
hash_code() {}
|
hash_code() = default;
|
||||||
|
|
||||||
/// \brief Form a hash code directly from a numerical value.
|
/// \brief Form a hash code directly from a numerical value.
|
||||||
hash_code(size_t value) : value(value) {}
|
hash_code(size_t value) : value(value) {}
|
||||||
|
@ -150,7 +150,7 @@ class iterator_adaptor_base
|
|||||||
protected:
|
protected:
|
||||||
WrappedIteratorT I;
|
WrappedIteratorT I;
|
||||||
|
|
||||||
iterator_adaptor_base() {}
|
iterator_adaptor_base() = default;
|
||||||
|
|
||||||
template <typename U>
|
template <typename U>
|
||||||
explicit iterator_adaptor_base(
|
explicit iterator_adaptor_base(
|
||||||
@ -231,7 +231,7 @@ struct pointee_iterator
|
|||||||
pointee_iterator<WrappedIteratorT>, WrappedIteratorT,
|
pointee_iterator<WrappedIteratorT>, WrappedIteratorT,
|
||||||
typename std::iterator_traits<WrappedIteratorT>::iterator_category,
|
typename std::iterator_traits<WrappedIteratorT>::iterator_category,
|
||||||
T> {
|
T> {
|
||||||
pointee_iterator() {}
|
pointee_iterator() = default;
|
||||||
template <typename U>
|
template <typename U>
|
||||||
pointee_iterator(U &&u)
|
pointee_iterator(U &&u)
|
||||||
: pointee_iterator::iterator_adaptor_base(std::forward<U &&>(u)) {}
|
: pointee_iterator::iterator_adaptor_base(std::forward<U &&>(u)) {}
|
||||||
|
@ -120,7 +120,7 @@ class UniqueID {
|
|||||||
uint64_t File;
|
uint64_t File;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UniqueID() {}
|
UniqueID() = default;
|
||||||
UniqueID(uint64_t Device, uint64_t File) : Device(Device), File(File) {}
|
UniqueID(uint64_t Device, uint64_t File) : Device(Device), File(File) {}
|
||||||
bool operator==(const UniqueID &Other) const {
|
bool operator==(const UniqueID &Other) const {
|
||||||
return Device == Other.Device && File == Other.File;
|
return Device == Other.Device && File == Other.File;
|
||||||
|
@ -163,7 +163,7 @@ namespace {
|
|||||||
static const char *const BlockTag;
|
static const char *const BlockTag;
|
||||||
static const char *const EdgeTag;
|
static const char *const EdgeTag;
|
||||||
|
|
||||||
GCOVRecord() {}
|
GCOVRecord() = default;
|
||||||
|
|
||||||
void writeBytes(const char *Bytes, int Size) {
|
void writeBytes(const char *Bytes, int Size) {
|
||||||
os->write(Bytes, Size);
|
os->write(Bytes, Size);
|
||||||
|
@ -41,9 +41,9 @@ struct PointerOffsetPair {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct LoadPOPPair {
|
struct LoadPOPPair {
|
||||||
|
LoadPOPPair() = default;
|
||||||
LoadPOPPair(LoadInst *L, PointerOffsetPair P, unsigned O)
|
LoadPOPPair(LoadInst *L, PointerOffsetPair P, unsigned O)
|
||||||
: Load(L), POP(P), InsertOrder(O) {}
|
: Load(L), POP(P), InsertOrder(O) {}
|
||||||
LoadPOPPair() {}
|
|
||||||
LoadInst *Load;
|
LoadInst *Load;
|
||||||
PointerOffsetPair POP;
|
PointerOffsetPair POP;
|
||||||
/// \brief The new load needs to be created before the first load in IR order.
|
/// \brief The new load needs to be created before the first load in IR order.
|
||||||
|
@ -112,8 +112,6 @@ public:
|
|||||||
/// a particular register.
|
/// a particular register.
|
||||||
SmallBitVector UsedByIndices;
|
SmallBitVector UsedByIndices;
|
||||||
|
|
||||||
RegSortData() {}
|
|
||||||
|
|
||||||
void print(raw_ostream &OS) const;
|
void print(raw_ostream &OS) const;
|
||||||
void dump() const;
|
void dump() const;
|
||||||
};
|
};
|
||||||
|
@ -253,10 +253,7 @@ binary_le_impl<value_type> binary_le(value_type V) {
|
|||||||
return binary_le_impl<value_type>(V);
|
return binary_le_impl<value_type>(V);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <size_t NumBytes>
|
template <size_t NumBytes> struct zeros_impl {};
|
||||||
struct zeros_impl {
|
|
||||||
zeros_impl() {}
|
|
||||||
};
|
|
||||||
|
|
||||||
template <size_t NumBytes>
|
template <size_t NumBytes>
|
||||||
raw_ostream &operator<<(raw_ostream &OS, const zeros_impl<NumBytes> &) {
|
raw_ostream &operator<<(raw_ostream &OS, const zeros_impl<NumBytes> &) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user