1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

GCOVProfiling - fix uninitialized variable warnings + make getFuncChecksum() const. NFCI.

This commit is contained in:
Simon Pilgrim 2019-11-14 13:55:28 +00:00
parent eadb492c3a
commit 96432067a7

View File

@ -129,9 +129,9 @@ private:
// Checksum, produced by hash of EdgeDestinations
SmallVector<uint32_t, 4> FileChecksums;
Module *M;
Module *M = nullptr;
std::function<const TargetLibraryInfo &(Function &F)> GetTLI;
LLVMContext *Ctx;
LLVMContext *Ctx = nullptr;
SmallVector<std::unique_ptr<GCOVFunction>, 16> Funcs;
std::vector<Regex> FilterRe;
std::vector<Regex> ExcludeRe;
@ -385,7 +385,7 @@ namespace {
return EdgeDestinations;
}
uint32_t getFuncChecksum() {
uint32_t getFuncChecksum() const {
return FuncChecksum;
}