From f098ced8486cad297ee633433709ed1424a745d3 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 30 Sep 2004 20:14:29 +0000 Subject: Add accessor function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16622 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp | 4 ++++ lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'lib/Transforms/Instrumentation') diff --git a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp index fe2839b325..9bb220ca77 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp @@ -181,4 +181,8 @@ bool CombineBranches::runOnFunction(Function &F){ return true; // FIXME: assumes a modification was always made. } +FunctionPass *createCombineBranchesPass () { + return new CombineBranches(); +} + } // End llvm namespace diff --git a/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp b/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp index 56a20730b7..e608174a17 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp @@ -176,4 +176,8 @@ bool InstLoops::runOnFunction(Function &F){ return true; // Function was modified. } +FunctionPass *createLoopInstrumentationPass () { + return new InstLoops(); +} + } // End llvm namespace -- cgit v1.2.3