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/CodeGenModule.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') 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 @@ CodeGenModule::GetOrCreateLLVMFunction(StringRef MangledName, } } + 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 @@ CodeGenModule::GetOrCreateLLVMGlobal(StringRef MangledName, isExternallyVisible(D->getLinkageAndVisibility().getLinkage())) GV->setSection(".cp.rodata"); + getTargetCodeGenInfo().emitTargetMD(D, GV, *this); + return GV; } -- cgit v1.1