你好,xcode13.2.1,swift版本5.5.2,使用swift5.5.1RELEASE版本移植混淆文件會(huì)報(bào)錯(cuò),
這種是不是蘋果官方改的不兼容了,那么應(yīng)該移植swift5.0嗎還是怎么辦,謝謝
/Users/liujia/swift-project/llvm-project/llvm/lib/Transforms/Obfuscation/Utils.cpp:67:38: error: unknown type name 'ConstantArray'; did you mean 'ConstantData'?
if (ConstantArray *ca = dyn_cast<ConstantArray>(glob->getInitializer())) {
^~~~~~~~~~~~~
ConstantData
/Users/liujia/swift-project/llvm-project/llvm/include/llvm/IR/Value.h:34:7: note: 'ConstantData' declared here
class ConstantData;
^
/Users/liujia/swift-project/llvm-project/llvm/lib/Transforms/Obfuscation/Utils.cpp:68:32: error: use of undeclared identifier 'ca'
for (unsigned i = 0; i < ca->getNumOperands(); ++i) {
^
/Users/liujia/swift-project/llvm-project/llvm/lib/Transforms/Obfuscation/Utils.cpp:70:13: error: use of undeclared identifier 'ConstantStruct'
if (ConstantStruct *structAn =
^
OLLVM代碼混淆移植與使用(再續(xù))關(guān)鍵修改 Legacy PM模式不生效 現(xiàn)在由于默認(rèn)是NEW PM所以經(jīng)常有人郵件我移植很完美編譯也成功,就是沒(méi)效果,這里做一下解答。主要兩種方式解決,一種是在cmake的時(shí)...