projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3921266
)
Since we are using GCC to assemble the program, make sure the assembly syntax is...
author
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Fri, 27 Jun 2008 15:08:59 +0000
(15:08 +0000)
committer
Argyrios Kyrtzidis
<akyrtzi@gmail.com>
Fri, 27 Jun 2008 15:08:59 +0000
(15:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52827
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-ld/llvm-ld.cpp
patch
|
blob
|
history
diff --git
a/tools/llvm-ld/llvm-ld.cpp
b/tools/llvm-ld/llvm-ld.cpp
index 40265628ac007335acb51ced15aab6e10d65a3d4..c8b0d58241f40fbd17f5c2629850ec3efe8441e4 100644
(file)
--- a/
tools/llvm-ld/llvm-ld.cpp
+++ b/
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());