mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 01:06:46 +00:00
make instnamer name unnamed blocks as well as instructions and args.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61175 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
10ef02e2c8
commit
24313e7aba
@ -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…
x
Reference in New Issue
Block a user