[llvm-commits] [dragonegg] r142346 - /dragonegg/trunk/src/Backend.cpp

Duncan Sands baldrick at free.fr
Tue Oct 18 02:11:57 PDT 2011


Author: baldrick
Date: Tue Oct 18 04:11:57 2011
New Revision: 142346

URL: http://llvm.org/viewvc/llvm-project?rev=142346&view=rev
Log:
Directly set the MC flag rather than pushing a command line argument.

Modified:
    dragonegg/trunk/src/Backend.cpp

Modified: dragonegg/trunk/src/Backend.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Backend.cpp?rev=142346&r1=142345&r2=142346&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Tue Oct 18 04:11:57 2011
@@ -340,9 +340,6 @@
   if (flag_split_stack)
     Args.push_back("--segmented-stacks");
 #endif
-  // Binutils does not yet support this construct.  FIXME: Once GCC learns to
-  // detect support for this, condition this on what GCC detected.
-  Args.push_back("--disable-dwarf-directory");
 
   // If there are options that should be passed through to the LLVM backend
   // directly from the command line, do so now.  This is mainly for debugging
@@ -438,8 +435,12 @@
 
   TheTarget = TME->createTargetMachine(TargetTriple, CPU, FeatureStr,
                                        RelocModel, CMModel);
-  TheTarget->setMCUseCFI(flag_dwarf2_cfi_asm);
   assert(TheTarget->getTargetData()->isBigEndian() == BYTES_BIG_ENDIAN);
+  TheTarget->setMCUseCFI(flag_dwarf2_cfi_asm);
+  // Binutils does not yet support the use of file directives with an explicit
+  // directory.  FIXME: Once GCC learns to detect support for this, condition
+  // on what GCC detected.
+  TheTarget->setMCUseDwarfDirectory(false);
 }
 
 /// CreateModule - Create and initialize a module to output LLVM IR to.





More information about the llvm-commits mailing list