diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-06-27 15:08:59 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-06-27 15:08:59 +0000 |
commit | ca29dffa164d4d265fb32b320d758cdbd9d903ac (patch) | |
tree | b0c76ed274f3d633d08a3bfb73fafc92542ed229 /tools/llvm-ld/llvm-ld.cpp | |
parent | 3921266559c71717e6d93ae6b6be7e5702826551 (diff) | |
download | external_llvm-ca29dffa164d4d265fb32b320d758cdbd9d903ac.zip external_llvm-ca29dffa164d4d265fb32b320d758cdbd9d903ac.tar.gz external_llvm-ca29dffa164d4d265fb32b320d758cdbd9d903ac.tar.bz2 |
Since we are using GCC to assemble the program, make sure the assembly syntax is AT&T.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | tools/llvm-ld/llvm-ld.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp index 4026562..c8b0d58 100644 --- 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()); |