mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Add missing createXxxPass functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user