diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-23 21:47:46 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-06-23 21:47:46 +0000 |
| commit | 248c719a6879d31fcdec760d46b8b50ec2d8761e (patch) | |
| tree | e60c679f9cad19f9b1a5276736d19db58528f84b /clang/lib/CodeGen/CGObjCRuntime.h | |
| parent | 4a75be24c98b2e285229160d41319c685d32797b (diff) | |
| download | bcm5719-llvm-248c719a6879d31fcdec760d46b8b50ec2d8761e.tar.gz bcm5719-llvm-248c719a6879d31fcdec760d46b8b50ec2d8761e.zip | |
Patch fixes an obscure bug when 'used' attribute is applied to
variables in ObjC's Next runtime mode. Next runtime also implicitly applies
'used' attribute on some of its meta-data. This results in two
'llvm.used' arrays to be generated, and one of them is renamed to
'llvm.used1'.
llvm-svn: 74008
Diffstat (limited to 'clang/lib/CodeGen/CGObjCRuntime.h')
| -rw-r--r-- | clang/lib/CodeGen/CGObjCRuntime.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjCRuntime.h b/clang/lib/CodeGen/CGObjCRuntime.h index b8cf026b35a..0f9cf0606d3 100644 --- a/clang/lib/CodeGen/CGObjCRuntime.h +++ b/clang/lib/CodeGen/CGObjCRuntime.h @@ -95,6 +95,9 @@ public: /// this compilation unit with the runtime library. virtual llvm::Function *ModuleInitFunction() = 0; + /// Add metadata globals to the 'used' globals for final output. + virtual void MergeMetadataGlobals(std::vector<llvm::Constant*> &UsedArray) = 0; + /// Get a selector for the specified name and type values. The /// return value should have the LLVM type for pointer-to /// ASTContext::getObjCSelType(). |

