编译器不';似乎找不到llvm::Instruction类的成员函数

编译器不';似乎找不到llvm::Instruction类的成员函数,llvm,Llvm,我对llvm代码非常陌生,如果指令满足某些条件,我会尝试对其进行转义。我尝试使用指令::getNextNonDebugInstruction()函数进行转义,在编译时,该函数会给我以下错误: “class llvm::Instruction”没有名为 “getNextNonDebugInstruction” 这没有意义,因为我们可以看到getNextNonDebugInstruction()是指令类中的公共和当前成员: 这是我的密码: llvm::Instruction* inst_ = ki

我对llvm代码非常陌生,如果指令满足某些条件,我会尝试对其进行转义。我尝试使用
指令::getNextNonDebugInstruction()
函数进行转义,在编译时,该函数会给我以下错误:

“class llvm::Instruction”没有名为 “getNextNonDebugInstruction”

这没有意义,因为我们可以看到
getNextNonDebugInstruction()
是指令类中的公共和当前成员:

这是我的密码:

llvm::Instruction* inst_ = ki->inst;

if(isa<CallInst>(inst_) && str.find("bpf")!= std::string::npos)
      {
        llvm::Instruction* next_inst = inst_->getNextNonDebugInstruction();

      }
llvm::指令*inst\uki->inst;
如果(isa(指令)和&str.find(“bpf”)!=std::string::npos)
{
llvm::指令*next_inst=inst_uu->getNextNonDebugInstruction();
}

该函数大约在一年前添加到LLVM代码库中(请参阅)。听起来你的版本没有包含这个更改