mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
make instnamer name unnamed blocks as well as instructions and args.
llvm-svn: 61175
This commit is contained in:
parent
0aa119d1f9
commit
005d68a2a9
@ -35,10 +35,14 @@ namespace {
|
||||
if (!AI->hasName() && AI->getType() != Type::VoidTy)
|
||||
AI->setName("tmp");
|
||||
|
||||
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
|
||||
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
|
||||
if (!BB->hasName())
|
||||
BB->setName("BB");
|
||||
|
||||
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
|
||||
if (!I->hasName() && I->getType() != Type::VoidTy)
|
||||
I->setName("tmp");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user