summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-02-06 03:29:18 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-02-06 03:29:18 +0000
commit29c6f4833ce0e743118278e9a149e27cbd8da126 (patch)
treebd3cda2e2f5ccc76d3d661df8c15af0677a0feb1 /llvm/lib/Transforms
parentcefa05d39f9ba3521976a5ab08d279b00b5811cb (diff)
downloadbcm5719-llvm-29c6f4833ce0e743118278e9a149e27cbd8da126.tar.gz
bcm5719-llvm-29c6f4833ce0e743118278e9a149e27cbd8da126.zip
ThinLTOBitcodeWriter: Do not include module-level inline asm in the merged module.
If the inline asm provides the definition of a symbol, this can result in duplicate symbol errors. Differential Revision: https://reviews.llvm.org/D42944 llvm-svn: 324313
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
index f5a3d4452c7..d2ce97abdd4 100644
--- a/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
+++ b/llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
@@ -298,6 +298,7 @@ void splitAndWriteThinLTOBitcode(
return false;
}));
StripDebugInfo(*MergedM);
+ MergedM->setModuleInlineAsm("");
for (Function &F : *MergedM)
if (!F.isDeclaration()) {
OpenPOWER on IntegriCloud