Simplify some typedef struct
This commit is contained in:
parent
1605fce6c3
commit
59d90fe817
|
@ -971,10 +971,10 @@ public:
|
|||
SmallVector<MachineInstr *, 4> Insts; /// Vector of DBG_VALUEs to insert.
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
struct LocAndProperties {
|
||||
LocIdx Loc;
|
||||
DbgValueProperties Properties;
|
||||
} LocAndProperties;
|
||||
};
|
||||
|
||||
/// Collection of transfers (DBG_VALUEs) to be inserted.
|
||||
SmallVector<Transfer, 32> Transfers;
|
||||
|
|
|
@ -63,7 +63,7 @@ using namespace llvm;
|
|||
|
||||
namespace {
|
||||
|
||||
typedef struct Address {
|
||||
struct Address {
|
||||
enum {
|
||||
RegBase,
|
||||
FrameIndexBase
|
||||
|
@ -81,7 +81,7 @@ typedef struct Address {
|
|||
: BaseType(RegBase), Offset(0) {
|
||||
Base.Reg = 0;
|
||||
}
|
||||
} Address;
|
||||
};
|
||||
|
||||
class PPCFastISel final : public FastISel {
|
||||
|
||||
|
|
|
@ -2004,7 +2004,8 @@ static int overlap_main(int argc, const char *argv[]) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
typedef struct ValueSitesStats {
|
||||
namespace {
|
||||
struct ValueSitesStats {
|
||||
ValueSitesStats()
|
||||
: TotalNumValueSites(0), TotalNumValueSitesWithValueProfile(0),
|
||||
TotalNumValues(0) {}
|
||||
|
@ -2012,7 +2013,8 @@ typedef struct ValueSitesStats {
|
|||
uint64_t TotalNumValueSitesWithValueProfile;
|
||||
uint64_t TotalNumValues;
|
||||
std::vector<unsigned> ValueSitesHistogram;
|
||||
} ValueSitesStats;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
static void traverseAllValueSites(const InstrProfRecord &Func, uint32_t VK,
|
||||
ValueSitesStats &Stats, raw_fd_ostream &OS,
|
||||
|
|
Loading…
Reference in New Issue