[llvm-commits] [llvm] r58238 - in /llvm/trunk: include/llvm/Transforms/Scalar.h lib/Transforms/Utils/InstructionNamer.cpp

Torok Edwin edwintorok at gmail.com
Mon Oct 27 03:16:28 PDT 2008


Author: edwin
Date: Mon Oct 27 05:16:27 2008
New Revision: 58238

URL: http://llvm.org/viewvc/llvm-project?rev=58238&view=rev
Log:
export an ID for the instructionNamer, allowing analysis/transformation passes
that need it to require it by ID.

Modified:
    llvm/trunk/include/llvm/Transforms/Scalar.h
    llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp

Modified: llvm/trunk/include/llvm/Transforms/Scalar.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Scalar.h?rev=58238&r1=58237&r2=58238&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Transforms/Scalar.h (original)
+++ llvm/trunk/include/llvm/Transforms/Scalar.h Mon Oct 27 05:16:27 2008
@@ -329,6 +329,7 @@
 // InstructionNamer - Give any unnamed non-void instructions "tmp" names.
 //
 FunctionPass *createInstructionNamerPass();
+extern const PassInfo *const InstructionNamerID;
   
 } // End llvm namespace
 

Modified: llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp?rev=58238&r1=58237&r2=58238&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InstructionNamer.cpp Mon Oct 27 05:16:27 2008
@@ -40,6 +40,7 @@
 }
 
 
+const PassInfo *const llvm::InstructionNamerID = &X;
 //===----------------------------------------------------------------------===//
 //
 // InstructionNamer - Give any unnamed non-void instructions "tmp" names.





More information about the llvm-commits mailing list