diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-19 14:47:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-19 14:47:32 +0000 |
commit | 511d2e26dd29ff4ef16d1e39898b6cb10bed44f9 (patch) | |
tree | 03e36d6515fac31914ee384af35eb29b150d582b /llvm/lib/Transforms/Utils/InstructionNamer.cpp | |
parent | 505fb84ed9e6eca26a0d8c161c71cd51ac0eb3da (diff) | |
download | bcm5719-llvm-511d2e26dd29ff4ef16d1e39898b6cb10bed44f9.tar.gz bcm5719-llvm-511d2e26dd29ff4ef16d1e39898b6cb10bed44f9.zip |
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
Diffstat (limited to 'llvm/lib/Transforms/Utils/InstructionNamer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InstructionNamer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InstructionNamer.cpp b/llvm/lib/Transforms/Utils/InstructionNamer.cpp index 1fa51a3b6a7..7f11acf4d8e 100644 --- a/llvm/lib/Transforms/Utils/InstructionNamer.cpp +++ b/llvm/lib/Transforms/Utils/InstructionNamer.cpp @@ -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())) |