diff options
author | Robert Lytton <robert@xmos.com> | 2014-05-02 09:33:20 +0000 |
---|---|---|
committer | Robert Lytton <robert@xmos.com> | 2014-05-02 09:33:20 +0000 |
commit | 844aeeb15a48c8ee88b5d657c849258c28d34e02 (patch) | |
tree | df941a14adf6b25a79cb7ac510d7bae7d6b305ac /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7229bbf8103c5b94a4a4e2238b467f055a224603 (diff) | |
download | llvm-844aeeb15a48c8ee88b5d657c849258c28d34e02.zip llvm-844aeeb15a48c8ee88b5d657c849258c28d34e02.tar.gz llvm-844aeeb15a48c8ee88b5d657c849258c28d34e02.tar.bz2 |
XCore target: Add TypeString meta data to IR output.
This includes the addition of the virtual function:
TargetCodeGenInfo::EmitTargetMD()
llvm-svn: 207832
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |