XCore target: Add TypeString meta data to IR output.

This includes the addition of the virtual function:
	TargetCodeGenInfo::EmitTargetMD()

llvm-svn: 207832
This commit is contained in:
Robert Lytton
2014-05-02 09:33:20 +00:00
parent 7229bbf810
commit 844aeeb15a
4 changed files with 720 additions and 0 deletions

View File

@@ -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;
}