你好,xcode13.2.1,swift版本5.5.2,使用swift5.5.1RELEASE版本移植混淆文件會報錯,
這種是不是蘋果官方改的不兼容了,那么應該移植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代碼混淆移植與使用(再續)關鍵修改 Legacy PM模式不生效 現在由于默認是NEW PM所以經常有人郵件我移植很完美編譯也成功,就是沒效果,這里做一下解答。主要兩種方式解決,一種是在cmake的時...