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:
Dan Gohman 2009-10-19 14:47:32 +00:00
parent 505fb84ed9
commit 511d2e26dd
1 changed files with 2 additions and 2 deletions

View File

@ -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()))