[PATCH] D19264: Enable ODR uniquing of DITypes for ThinLTO backends
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 19:29:30 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL266852: Enable ODR uniquing of DITypes for ThinLTO backends (authored by tejohnson).
Changed prior to commit:
http://reviews.llvm.org/D19264?vs=54198&id=54315#toc
Repository:
rL LLVM
http://reviews.llvm.org/D19264
Files:
cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Index: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
===================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp
@@ -794,6 +794,11 @@
if (Invalid)
return;
+ // For ThinLTO backend invocations, ensure that the context
+ // merges types based on ODR identifiers.
+ if (!CI.getCodeGenOpts().ThinLTOIndexFile.empty())
+ VMContext->enableDebugTypeODRUniquing();
+
llvm::SMDiagnostic Err;
TheModule = parseIR(MainFile->getMemBufferRef(), Err, *VMContext);
if (!TheModule) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19264.54315.patch
Type: text/x-patch
Size: 601 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160420/c87ba314/attachment.bin>
More information about the llvm-commits
mailing list