From 844aeeb15a48c8ee88b5d657c849258c28d34e02 Mon Sep 17 00:00:00 2001 From: Robert Lytton Date: Fri, 2 May 2014 09:33:20 +0000 Subject: XCore target: Add TypeString meta data to IR output. This includes the addition of the virtual function: TargetCodeGenInfo::EmitTargetMD() llvm-svn: 207832 --- clang/lib/CodeGen/TargetInfo.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/CodeGen/TargetInfo.h') 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 { -- cgit v1.2.3