XCore target: Add TypeString meta data to IR output.
This includes the addition of the virtual function:
TargetCodeGenInfo::EmitTargetMD()
llvm-svn: 207832
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index ac97bda..11f69cc 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1463,6 +1463,8 @@
}
}
+ getTargetCodeGenInfo().emitTargetMD(D, F, *this);
+
// Make sure the result is of the requested type.
if (!IsIncompleteFunction) {
assert(F->getType()->getElementType() == Ty);
@@ -1616,6 +1618,8 @@
isExternallyVisible(D->getLinkageAndVisibility().getLinkage()))
GV->setSection(".cp.rodata");
+ getTargetCodeGenInfo().emitTargetMD(D, GV, *this);
+
return GV;
}