diff options
| author | Xinliang David Li <davidxl@google.com> | 2015-11-08 18:00:13 +0000 | 
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2015-11-08 18:00:13 +0000 | 
| commit | 470bfa9aaa08f67543e099f6d7aaafe440238ac9 (patch) | |
| tree | e90f65e480cb67fcaf3f98cf607a0975a0eee749 | |
| parent | 37977076956fed8a1cb6f00b188e4636f23371be (diff) | |
| download | bcm5719-llvm-470bfa9aaa08f67543e099f6d7aaafe440238ac9.tar.gz bcm5719-llvm-470bfa9aaa08f67543e099f6d7aaafe440238ac9.zip  | |
[PGO] Cleanup: fix function-data field names
To make them the same as the common def in InstrProfData.inc.
This is a preparation to make the runtime code  to use the 
template as well. NFC
llvm-svn: 252421
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfiling.h | 4 | ||||
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfilingPlatformOther.c | 16 | 
2 files changed, 10 insertions, 10 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h index 7aac3b4c29c..fb6e32a4755 100644 --- a/compiler-rt/lib/profile/InstrProfiling.h +++ b/compiler-rt/lib/profile/InstrProfiling.h @@ -32,8 +32,8 @@ typedef struct __llvm_profile_data {    const uint32_t NameSize;    const uint32_t NumCounters;    const uint64_t FuncHash; -  const char *const Name; -  uint64_t *const Counters; +  const char *const NamePtr; +  uint64_t *const CounterPtr;  } __llvm_profile_data;  typedef struct __llvm_profile_header { diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c b/compiler-rt/lib/profile/InstrProfilingPlatformOther.c index 2ad058beb90..eb6eb01db31 100644 --- a/compiler-rt/lib/profile/InstrProfilingPlatformOther.c +++ b/compiler-rt/lib/profile/InstrProfilingPlatformOther.c @@ -33,25 +33,25 @@ void __llvm_profile_register_function(void *Data_) {    if (!DataFirst) {      DataFirst = Data;      DataLast = Data + 1; -    NamesFirst = Data->Name; -    NamesLast = Data->Name + Data->NameSize; -    CountersFirst = Data->Counters; -    CountersLast = Data->Counters + Data->NumCounters; +    NamesFirst = Data->NamePtr; +    NamesLast = Data->NamePtr + Data->NameSize; +    CountersFirst = Data->CounterPtr; +    CountersLast = Data->CounterPtr + Data->NumCounters;      return;    }  #define UPDATE_FIRST(First, New) \    First = New < First ? New : First    UPDATE_FIRST(DataFirst, Data); -  UPDATE_FIRST(NamesFirst, Data->Name); -  UPDATE_FIRST(CountersFirst, Data->Counters); +  UPDATE_FIRST(NamesFirst, Data->NamePtr); +  UPDATE_FIRST(CountersFirst, Data->CounterPtr);  #undef UPDATE_FIRST  #define UPDATE_LAST(Last, New) \    Last = New > Last ? New : Last    UPDATE_LAST(DataLast, Data + 1); -  UPDATE_LAST(NamesLast, Data->Name + Data->NameSize); -  UPDATE_LAST(CountersLast, Data->Counters + Data->NumCounters); +  UPDATE_LAST(NamesLast, Data->NamePtr + Data->NameSize); +  UPDATE_LAST(CountersLast, Data->CounterPtr + Data->NumCounters);  #undef UPDATE_LAST  }  | 

