Re: [cfe-users] Linking error and memory bloating for .so file creation

2019-03-19 Thread Ankush Sharma via cfe-users
Hi, We are generating the .so file for the Android ARM 64 flavor on Windows platform. Following is the version info for the "clang++.exe" executable used for generating the .so file. *F:\Debug>"F:\androidndk.16.1.9\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe" -v* - Android clang ver

[cfe-users] Where does clang merge two structTypes into one?

2019-03-19 Thread Fuqian Huang via cfe-users
I want to modified clang and add a attribute some struct fields, but clang merge two structTypes with same element types into one. e.g. %struct.a = type { i16, i16, i8*} %struct.b = type { i16, i16, i8*} these two struct types will be merged into one. What i want is %struct.a = type { i16, i16, i8*