mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Fix a bunch of other places that used operator[] to test whether
a key is present in a std::map or DenseMap to use find instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -81,8 +81,10 @@ namespace {
|
||||
virtual void emitBasicBlockStartAnnot(const BasicBlock *BB,
|
||||
raw_ostream &OS) {
|
||||
if (BlockFreqs.empty()) return;
|
||||
if (unsigned Count = BlockFreqs[BB])
|
||||
OS << "\t;;; Basic block executed " << Count << " times.\n";
|
||||
std::map<const BasicBlock *, unsigned>::const_iterator I =
|
||||
BlockFreqs.find(BB);
|
||||
if (I != BlockFreqs.end())
|
||||
OS << "\t;;; Basic block executed " << I->second << " times.\n";
|
||||
else
|
||||
OS << "\t;;; Never executed!\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user