1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Style cleanup following David's review for r188876.

llvm-svn: 188924
This commit is contained in:
Ahmed Bougacha 2013-08-21 19:40:25 +00:00
parent 49ff5d404a
commit 13f01b07c3

View File

@ -31,16 +31,15 @@ MCBasicBlock &MCFunction::createBlock(const MCTextAtom &TA) {
return *MCBB;
}
const MCBasicBlock *MCFunction::find(uint64_t StartAddr) const {
MCBasicBlock *MCFunction::find(uint64_t StartAddr) {
for (const_iterator I = begin(), E = end(); I != E; ++I)
if ((*I)->getInsts()->getBeginAddr() == StartAddr)
return (*I);
return *I;
return 0;
}
MCBasicBlock *MCFunction::find(uint64_t StartAddr) {
return const_cast<MCBasicBlock *>(
const_cast<const MCFunction *>(this)->find(StartAddr));
const MCBasicBlock *MCFunction::find(uint64_t StartAddr) const {
return const_cast<MCFunction *>(this)->find(StartAddr);
}
// MCBasicBlock