diff options
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp b/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp index 746e82221ad..68d50ae5596 100644 --- a/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp +++ b/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp @@ -18,6 +18,7 @@ #include "llvm/Module.h" #include "llvm/Pass.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" +#include "llvm/Transforms/Instrumentation.h" #include "llvm/Instructions.h" #include "ProfilingUtils.h" #include "llvm/Support/Debug.h" @@ -33,6 +34,11 @@ namespace { "Insert instrumentation for basic block tracing"); } +ModulePass *llvm::createTraceBasicBlockPass() +{ + return new TraceBasicBlocks(); +} + static void InsertInstrumentationCall (BasicBlock *BB, const std::string FnName, unsigned BBNumber) { |

