summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-06 23:57:41 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-06 23:57:41 +0000
commit09ae03299a5fcedde332a9f89d5cafaa83813a7a (patch)
tree1b70120ce6f62efb1040e1de5be50839b8e28294 /clang/lib/CodeGen/CodeGenModule.h
parentda534381f80fa674ce585bc54475112a2eb2f7b0 (diff)
downloadbcm5719-llvm-09ae03299a5fcedde332a9f89d5cafaa83813a7a.tar.gz
bcm5719-llvm-09ae03299a5fcedde332a9f89d5cafaa83813a7a.zip
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. :) llvm-svn: 107739
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index d0d3c7caee8..a1ea0ec6676 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -594,6 +594,8 @@ private:
/// references to global which may otherwise be optimized out.
void EmitLLVMUsed(void);
+ void EmitDeclMetadata();
+
/// MayDeferGeneration - Determine if the given decl can be emitted
/// lazily; this is only relevant for definitions. The given decl
/// must be either a function or var decl.
OpenPOWER on IntegriCloud