diff options
author | Owen Anderson <resistor@mac.com> | 2010-10-07 20:17:24 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-10-07 20:17:24 +0000 |
commit | aa4897fa1323ef78d5e72a80c74e96eb21f72057 (patch) | |
tree | d9c4c06520c84a9fbf22150aa33d14cff3b6b7f4 /lib/Transforms/Instrumentation/Instrumentation.cpp | |
parent | 9e94000c164ac7aa9dd81d8a6823751ea49906a3 (diff) |
Add initialization routines for Instrumentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/Instrumentation.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/Instrumentation.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/Instrumentation.cpp b/lib/Transforms/Instrumentation/Instrumentation.cpp new file mode 100644 index 0000000000..21dc7b9473 --- /dev/null +++ b/lib/Transforms/Instrumentation/Instrumentation.cpp @@ -0,0 +1,31 @@ +//===-- Instrumentation.cpp - TransformUtils Infrastructure ---------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the common initialization infrastructure for the +// Instrumentation library. +// +//===----------------------------------------------------------------------===// + +#include "llvm/InitializePasses.h" +#include "llvm-c/Initialization.h" + +using namespace llvm; + +/// initializeInstrumentation - Initialize all passes in the TransformUtils +/// library. +void llvm::initializeInstrumentation(PassRegistry &Registry) { + initializeEdgeProfilerPass(Registry); + initializeOptimalEdgeProfilerPass(Registry); +} + +/// LLVMInitializeInstrumentation - C binding for +/// initializeInstrumentation. +void LLVMInitializeInstrumentation(LLVMPassRegistryRef R) { + initializeInstrumentation(*unwrap(R)); +} |