[llvm-commits] [llvm] r52827 - /llvm/trunk/tools/llvm-ld/llvm-ld.cpp

Argiris Kirtzidis akyrtzi at gmail.com
Fri Jun 27 08:09:01 PDT 2008


Author: akirtzidis
Date: Fri Jun 27 10:08:59 2008
New Revision: 52827

URL: http://llvm.org/viewvc/llvm-project?rev=52827&view=rev
Log:
Since we are using GCC to assemble the program, make sure the assembly syntax is AT&T.

Modified:
    llvm/trunk/tools/llvm-ld/llvm-ld.cpp

Modified: llvm/trunk/tools/llvm-ld/llvm-ld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-ld/llvm-ld.cpp?rev=52827&r1=52826&r2=52827&view=diff

==============================================================================
--- llvm/trunk/tools/llvm-ld/llvm-ld.cpp (original)
+++ llvm/trunk/tools/llvm-ld/llvm-ld.cpp Fri Jun 27 10:08:59 2008
@@ -251,6 +251,9 @@
   // 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());





More information about the llvm-commits mailing list