mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-15 04:00:56 +00:00
Finish fixing <rdar://problem/5929344> clang ObjC rewriter: "extern int __CFConstantStringClassReference[];" should be extern "C"
llvm-svn: 54367
This commit is contained in:
parent
9f6112c4e6
commit
dd514e01f2
@ -358,7 +358,11 @@ void RewriteObjC::Initialize(ASTContext &context) {
|
||||
Preamble += " char *str;\n";
|
||||
Preamble += " long length;\n";
|
||||
Preamble += "};\n";
|
||||
Preamble += "#ifdef CF_EXPORT_CONSTANT_STRING\n";
|
||||
Preamble += "extern \"C\" __declspec(dllexport) int __CFConstantStringClassReference[];\n";
|
||||
Preamble += "#else\n";
|
||||
Preamble += "__OBJC_RW_EXTERN int __CFConstantStringClassReference[];\n";
|
||||
Preamble += "#endif\n";
|
||||
Preamble += "#define __NSCONSTANTSTRINGIMPL\n";
|
||||
Preamble += "#endif\n";
|
||||
if (LangOpts.Microsoft) {
|
||||
|
Loading…
Reference in New Issue
Block a user