summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/TargetInfo.h
diff options
context:
space:
mode:
authorRobert Lytton <robert@xmos.com>2014-05-02 09:33:20 +0000
committerRobert Lytton <robert@xmos.com>2014-05-02 09:33:20 +0000
commit844aeeb15a48c8ee88b5d657c849258c28d34e02 (patch)
treedf941a14adf6b25a79cb7ac510d7bae7d6b305ac /clang/lib/CodeGen/TargetInfo.h
parent7229bbf8103c5b94a4a4e2238b467f055a224603 (diff)
downloadbcm5719-llvm-844aeeb15a48c8ee88b5d657c849258c28d34e02.tar.gz
bcm5719-llvm-844aeeb15a48c8ee88b5d657c849258c28d34e02.zip
XCore target: Add TypeString meta data to IR output.
This includes the addition of the virtual function: TargetCodeGenInfo::EmitTargetMD() llvm-svn: 207832
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.h')
-rw-r--r--clang/lib/CodeGen/TargetInfo.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.h b/clang/lib/CodeGen/TargetInfo.h
index 6c3ab64834b..b092426d832 100644
--- a/clang/lib/CodeGen/TargetInfo.h
+++ b/clang/lib/CodeGen/TargetInfo.h
@@ -56,6 +56,11 @@ namespace clang {
virtual void SetTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
CodeGen::CodeGenModule &M) const { }
+ /// EmitTargetMD - Provides a convenient hook to handle extra
+ /// target-specific metadata for the given global.
+ virtual void emitTargetMD(const Decl *D, llvm::GlobalValue *GV,
+ CodeGen::CodeGenModule &M) const { }
+
/// Determines the size of struct _Unwind_Exception on this platform,
/// in 8-bit units. The Itanium ABI defines this as:
/// struct _Unwind_Exception {
OpenPOWER on IntegriCloud