mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
Style cleanup following David's review for r188876.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a68512f68f
commit
2172767491
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user