forked from OSchip/llvm-project
Change instnamer to name arguments "arg" instead of "tmp" for clarity, and
to name basic blocks "bb" instead of "BB", for consistency. llvm-svn: 84502
This commit is contained in:
parent
505fb84ed9
commit
511d2e26dd
|
@ -33,11 +33,11 @@ namespace {
|
|||
for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
|
||||
AI != AE; ++AI)
|
||||
if (!AI->hasName() && AI->getType() != Type::getVoidTy(F.getContext()))
|
||||
AI->setName("tmp");
|
||||
AI->setName("arg");
|
||||
|
||||
for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
|
||||
if (!BB->hasName())
|
||||
BB->setName("BB");
|
||||
BB->setName("bb");
|
||||
|
||||
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
|
||||
if (!I->hasName() && I->getType() != Type::getVoidTy(F.getContext()))
|
||||
|
|
Loading…
Reference in New Issue