DreamSoule / ollvm17

Obfuscation LLVM 17
337 stars 54 forks source link

llvm17.0.6 build error #16

Closed feiwei9696 closed 9 months ago

feiwei9696 commented 9 months ago

/work/llvm-project/llvm/lib/Passes/Obfuscation/IPObfuscationContext.cpp:232:31: error: ‘llvm::Function::BasicBlockListType& llvm::Function::getBasicBlockList()’ is private within this context NF->getBasicBlockList().splice(NF->begin(), F->getBasicBlockList());

feiwei9696 commented 9 months ago

gcc 8.4.0

feiwei9696 commented 9 months ago

看到说明了

如果编译过程中有提示部分函数是private的无法调用的话把private注释即可 LLVM 17.0.6注释后正常无报错 要取消private属性的文件及目标行(LLVM17.0.1): ...\llvm-project\llvm\include\llvm\IR\Function.h:722 此函数的private属性: getBasicBlockList