[llvm-commits] [llvm] r84502 - /llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp
Dan Gohman
gohman at apple.com
Mon Oct 19 07:47:32 PDT 2009
Author: djg
Date: Mon Oct 19 09:47:32 2009
New Revision: 84502
URL: http://llvm.org/viewvc/llvm-project?rev=84502&view=rev
Log:
Change instnamer to name arguments "arg" instead of "tmp" for clarity, and
to name basic blocks "bb" instead of "BB", for consistency.
Modified:
llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp?rev=84502&r1=84501&r2=84502&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp Mon Oct 19 09:47:32 2009
@@ -33,11 +33,11 @@
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()))
More information about the llvm-commits
mailing list