Displaying 1 result from an estimated 1 matches for "bbnumber".
Did you mean:
bnumber
2004 May 21
1
[LLVMdev] Re: LLVMdev digest, Vol 1 #292 - 4 msgs
...d]
opt(llvm::PassManager::run(llvm::Module&)+0x1f)[0x8595fb1]
opt(main+0x97f)[0x838273b]
opt(__libc_start_main+0xa4)[0x420158d4]
opt(dlopen+0x41)[0x8381d2d]
Aborted
Source code:
static void InsertInstrumentationCall( BasicBlock *BB,
const std::string FnName,
unsigned BBnumber){
Module &M = *BB->getParent()->getParent();
Function *InstrFn = M.getOrInsertFunction (FnName , Type::VoidTy, Type::UIntTy,0);
std::vector<Value *> Args(1);
Args[0] = ConstantUInt::get(Type::UIntTy, BBnumber);
// Insert Call after first instruction
BasicBlock :: iterat...