diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-02-03 21:35:49 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-02-03 21:35:49 +0000 |
commit | 4da909b2b2a1087e4827ded24fea212016a1a9a0 (patch) | |
tree | f2e786eb4688e15eb21fba16c38f4d40707fe64e /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | de15817ea20f021f23b47fe0c42317b98302eecc (diff) | |
download | bcm5719-llvm-4da909b2b2a1087e4827ded24fea212016a1a9a0.tar.gz bcm5719-llvm-4da909b2b2a1087e4827ded24fea212016a1a9a0.zip |
InstrProf: Remove CoverageMapping::HasCodeBefore, it isn't used
llvm-svn: 228035
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index aa8e33331ef..e85fa114fae 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -247,7 +247,7 @@ public: unsigned LineEnd = SM.getSpellingLineNumber(LocEnd); unsigned ColumnEnd = SM.getSpellingColumnNumber(LocEnd); CounterMappingRegion Region(Counter(), *CovFileID, LineStart, ColumnStart, - LineEnd, ColumnEnd, false, + LineEnd, ColumnEnd, CounterMappingRegion::SkippedRegion); // Make sure that we only collect the regions that are inside // the souce code of this function. @@ -286,7 +286,7 @@ public: MappingRegions.push_back(CounterMappingRegion( Counter(), *CovFileID, LineStart, ColumnStart, LineEnd, ColumnEnd, - false, CounterMappingRegion::ExpansionRegion)); + CounterMappingRegion::ExpansionRegion)); MappingRegions.back().ExpandedFileID = *ExpandedFileID; } @@ -377,7 +377,7 @@ public: assert(LineStart <= LineEnd); MappingRegions.push_back(CounterMappingRegion( I->getCounter(), *CovFileID, LineStart, ColumnStart, LineEnd, - ColumnEnd, false, CounterMappingRegion::CodeRegion)); + ColumnEnd, CounterMappingRegion::CodeRegion)); } } }; @@ -566,8 +566,8 @@ struct CounterCoverageMappingBuilder createFileIDMapping(VirtualFileMapping); gatherSkippedRegions(); - CoverageMappingWriter Writer( - VirtualFileMapping, Builder.getExpressions(), MappingRegions); + CoverageMappingWriter Writer(VirtualFileMapping, Builder.getExpressions(), + MappingRegions); Writer.write(OS); } @@ -986,8 +986,8 @@ struct CounterCoverageMappingBuilder void VisitObjCMessageExpr(const ObjCMessageExpr *E) { mapToken(E->getLeftLoc()); - for (Stmt::const_child_range I = static_cast<const Stmt*>(E)->children(); I; - ++I) { + for (Stmt::const_child_range I = static_cast<const Stmt *>(E)->children(); + I; ++I) { if (*I) this->Visit(*I); } @@ -1022,15 +1022,12 @@ static void dump(llvm::raw_ostream &OS, StringRef FunctionName, break; } - OS << "File " << R.FileID << ", " << R.LineStart << ":" - << R.ColumnStart << " -> " << R.LineEnd << ":" << R.ColumnEnd - << " = "; + OS << "File " << R.FileID << ", " << R.LineStart << ":" << R.ColumnStart + << " -> " << R.LineEnd << ":" << R.ColumnEnd << " = "; Ctx.dump(R.Count, OS); - OS << " (HasCodeBefore = " << R.HasCodeBefore; if (R.Kind == CounterMappingRegion::ExpansionRegion) - OS << ", Expanded file = " << R.ExpandedFileID; - - OS << ")\n"; + OS << " (Expanded file = " << R.ExpandedFileID << ")"; + OS << "\n"; } } |