From 6ffa12e56d4ac413775e2f2d119838e3122c885d Mon Sep 17 00:00:00 2001
From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date: Sat, 17 Jan 2015 16:41:30 -0800
Subject: [PATCH 3/4] MacPorts Only: Don't embed the deployment target in the
asm when using -fno-integrated-as
http://llvm.org/bugs/show_bug.cgi?id=21636
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git llvm_master/lib/CodeGen/AsmPrinter/AsmPrinter.cpp macports_master/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index d7995447592..2ac927ca4ce 100644
--- llvm_master/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ macports_master/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -254,8 +254,10 @@ bool AsmPrinter::doInitialization(Module &M) {
// alternative is duplicated code in each of the target asm printers that
// use the directive, where it would need the same conditionalization
- const Triple &Target = TM.getTargetTriple();
- OutStreamer->EmitVersionForTarget(Target);
+ if (MAI->useIntegratedAssembler()) {
+ const Triple &Target = TM.getTargetTriple();
+ OutStreamer->EmitVersionForTarget(Target);
// Allow the target to emit any magic that it wants at the start of the file.