summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-ld/llvm-ld.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-27 15:08:59 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2008-06-27 15:08:59 +0000
commit969cc2aea37f8f16891fb2bf4fd7e678523846de (patch)
treec2550223390bae00bf8fa770862dcd6a717ec881 /llvm/tools/llvm-ld/llvm-ld.cpp
parent0690fdbef20dfd7bdc9097bb137a7c26464bb513 (diff)
downloadbcm5719-llvm-969cc2aea37f8f16891fb2bf4fd7e678523846de.tar.gz
bcm5719-llvm-969cc2aea37f8f16891fb2bf4fd7e678523846de.zip
Since we are using GCC to assemble the program, make sure the assembly syntax is AT&T.
llvm-svn: 52827
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r--llvm/tools/llvm-ld/llvm-ld.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp
index 40265628ac0..c8b0d58241f 100644
--- a/llvm/tools/llvm-ld/llvm-ld.cpp
+++ b/llvm/tools/llvm-ld/llvm-ld.cpp
@@ -251,6 +251,9 @@ static int GenerateAssembly(const std::string &OutputFilename,
// Run LLC to convert the bitcode file into assembly code.
std::vector<const char*> args;
args.push_back(llc.c_str());
+ // We will use GCC to assemble the program so set the assembly syntax to AT&T,
+ // regardless of what the target in the bitcode file is.
+ args.push_back("-x86-asm-syntax=att");
args.push_back("-f");
args.push_back("-o");
args.push_back(OutputFilename.c_str());
OpenPOWER on IntegriCloud