From 3d54502304bcc421b37881b225bf95c9a6024264 Mon Sep 17 00:00:00 2001 From: Torok Edwin Date: Mon, 27 Oct 2008 10:16:27 +0000 Subject: [PATCH] export an ID for the instructionNamer, allowing analysis/transformation passes that need it to require it by ID. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58238 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Scalar.h | 1 + lib/Transforms/Utils/InstructionNamer.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 74bbfa5b9de..52f7967af2e 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -329,6 +329,7 @@ FunctionPass *createCodeGenPreparePass(const TargetLowering *TLI = 0); // InstructionNamer - Give any unnamed non-void instructions "tmp" names. // FunctionPass *createInstructionNamerPass(); +extern const PassInfo *const InstructionNamerID; } // End llvm namespace diff --git a/lib/Transforms/Utils/InstructionNamer.cpp b/lib/Transforms/Utils/InstructionNamer.cpp index f0e77c99cee..aa29788af83 100644 --- a/lib/Transforms/Utils/InstructionNamer.cpp +++ b/lib/Transforms/Utils/InstructionNamer.cpp @@ -40,6 +40,7 @@ namespace { } +const PassInfo *const llvm::InstructionNamerID = &X; //===----------------------------------------------------------------------===// // // InstructionNamer - Give any unnamed non-void instructions "tmp" names.