Skip to content
Snippets Groups Projects
Commit 511d2e26 authored by Dan Gohman's avatar Dan Gohman
Browse files

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
parent 505fb84e
No related branches found
No related tags found
No related merge requests found
...@@ -33,11 +33,11 @@ namespace { ...@@ -33,11 +33,11 @@ namespace {
for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
AI != AE; ++AI) AI != AE; ++AI)
if (!AI->hasName() && AI->getType() != Type::getVoidTy(F.getContext())) 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) { for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
if (!BB->hasName()) if (!BB->hasName())
BB->setName("BB"); BB->setName("bb");
for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I) for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
if (!I->hasName() && I->getType() != Type::getVoidTy(F.getContext())) if (!I->hasName() && I->getType() != Type::getVoidTy(F.getContext()))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment