diff options
author | John McCall <rjmccall@apple.com> | 2010-07-06 23:57:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-07-06 23:57:41 +0000 |
commit | 744016dde06fcffd50931e94a98c850f8b12cd87 (patch) | |
tree | 38c46bdfb9534bcbfc5a32e27e8c09de3a525b2d /lib/CodeGen/CodeGenFunction.h | |
parent | 0ea0e8b4028db1e3c196025354dcddb8765f73bc (diff) |
Provide a hook for the benefit of clients using clang IR gen as a subroutine:
emit metadata associating allocas and global values with a Decl*. This feature
is controlled by an option that (intentionally) cannot be enabled on the command
line.
To use this feature, simply set
CodeGenOptions.EmitDeclMetadata = true;
and then interpret the completely underspecified metadata. :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 850df7ee7c..00a0936044 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1548,6 +1548,8 @@ private: const TargetCodeGenInfo &getTargetHooks() const { return CGM.getTargetCodeGenInfo(); } + + void EmitDeclMetadata(); }; |