From 328d83f2b2935fcf0a5da60ab772ee3b62c1d468 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Tue, 19 Jan 2016 00:49:06 +0000 Subject: [PATCH] Fix local variable name /NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258106 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CoverageMappingGen.cpp | 4 ++-- lib/CodeGen/CoverageMappingGen.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/CodeGen/CoverageMappingGen.cpp b/lib/CodeGen/CoverageMappingGen.cpp index 03e22cd398..cfbf781f59 100644 --- a/lib/CodeGen/CoverageMappingGen.cpp +++ b/lib/CodeGen/CoverageMappingGen.cpp @@ -911,7 +911,7 @@ static void dump(llvm::raw_ostream &OS, StringRef FunctionName, void CoverageMappingModuleGen::addFunctionMappingRecord( llvm::GlobalVariable *NamePtr, StringRef NameValue, uint64_t FuncHash, - const std::string &CoverageMapping, bool isUsed) { + const std::string &CoverageMapping, bool IsUsed) { llvm::LLVMContext &Ctx = CGM.getLLVMContext(); if (!FunctionRecordTy) { #define COVMAP_FUNC_RECORD(Type, LLVMType, Name, Init) LLVMType, @@ -929,7 +929,7 @@ void CoverageMappingModuleGen::addFunctionMappingRecord( }; FunctionRecords.push_back(llvm::ConstantStruct::get( FunctionRecordTy, makeArrayRef(FunctionRecordVals))); - if (!isUsed) + if (!IsUsed) FunctionNames.push_back( llvm::ConstantExpr::getBitCast(NamePtr, llvm::Type::getInt8PtrTy(Ctx))); CoverageMappings += CoverageMapping; diff --git a/lib/CodeGen/CoverageMappingGen.h b/lib/CodeGen/CoverageMappingGen.h index 9ae2bcffe4..70aed84292 100644 --- a/lib/CodeGen/CoverageMappingGen.h +++ b/lib/CodeGen/CoverageMappingGen.h @@ -72,7 +72,7 @@ public: StringRef FunctionNameValue, uint64_t FunctionHash, const std::string &CoverageMapping, - bool isUsed = true); + bool IsUsed = true); /// \brief Emit the coverage mapping data for a translation unit. void emit(); -- 2.40.0