mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
Simplify some typedef struct
This commit is contained in:
parent
a20aff32da
commit
2beef4520d
@ -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
Block a user