LLVM未定义对LLVM::CreateDemoRegisterToMemoryPass的引用

LLVM未定义对LLVM::CreateDemoRegisterToMemoryPass的引用,llvm,obfuscation,llvm-clang,llvm-ir,llvm-gcc,Llvm,Obfuscation,Llvm Clang,Llvm Ir,Llvm Gcc,我正在研究OLLVM(),它是一个基于LLVM的模糊处理项目。在我自己的密码中尝试使用reg2mem密码时,我收到上面的错误消息。代码是一样的 struct MyPass : public FunctionPass { static char ID; MyPass():FunctionPass(ID) {} bool runOnFunction(Function &F); }; bool MyPass::runOnFunction(Function &F

我正在研究OLLVM(),它是一个基于LLVM的模糊处理项目。在我自己的密码中尝试使用reg2mem密码时,我收到上面的错误消息。代码是一样的

struct MyPass : public FunctionPass {
    static char ID;
    MyPass():FunctionPass(ID) {}
    bool runOnFunction(Function &F);
};

bool MyPass::runOnFunction(Function &F) {
    FunctionPass *regPass = createDemoteRegisterToMemoryPass();
    regPass->runOnFunction(F);
    return false;
}  
我按照github wiki上的说明构建整个项目。

如果有人能帮助我,我将不胜感激。

在lib/Transforms/Obfuscation/LLVMBuild.txt文件中添加以下行:

必需的\u库=标量

或者,如果该文件中已经有必需的_库,只需在libs中添加一个空格后的标量即可