Add comments for OrderedInstruction. NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306201 cdac9f57-aa62-4fd3-8940-286f4534e8a0
This commit is contained in:
Xin Tong 2017-06-24 05:16:12 +00:00
parent 3a48f331ba
commit 718bab77be

View File

@ -43,6 +43,9 @@ public:
bool dominates(const Instruction *, const Instruction *) const;
/// Invalidate the OrderedBasicBlock cache when its basic block changes.
/// i.e. If an instruction is deleted or added to the basic block, the user
/// should call this function to invalidate the OrderedBasicBlock cache for
/// this basic block.
void invalidateBlock(BasicBlock *BB) { OBBMap.erase(BB); }
};