summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
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
commit00a52b3c6b5c785976e65db5cac11a67aa2fa3df (patch)
tree3a1ccaa6551159249cb56d25c1ab34083456be21 /lib/CodeGen/CodeGenModule.cpp
parent30d310e25f70d179dde382726fc9c1667a6200a8 (diff)
downloadclang-00a52b3c6b5c785976e65db5cac11a67aa2fa3df.tar.gz
clang-00a52b3c6b5c785976e65db5cac11a67aa2fa3df.tar.bz2
clang-00a52b3c6b5c785976e65db5cac11a67aa2fa3df.tar.xz
XCore target: Add TypeString meta data to IR output.
This includes the addition of the virtual function: TargetCodeGenInfo::EmitTargetMD() git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index ac97bdac60..11f69cc0fc 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/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;
}