Change instnamer to name arguments "arg" instead of "tmp" for clarity, and
authorDan Gohman <gohman@apple.com>
Mon, 19 Oct 2009 14:47:32 +0000 (14:47 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 19 Oct 2009 14:47:32 +0000 (14:47 +0000)
to name basic blocks "bb" instead of "BB", for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84502 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/InstructionNamer.cpp

index 1fa51a3b6a71392033e940a1fffcf66fb9812c11..7f11acf4d8e2aee4b3ca9195f38ad8b13f02d12e 100644 (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()))