[dragonegg] r208845 - Update MCOptions corresponding to r208832.

NAKAMURA Takumi geek4civic at gmail.com
Wed May 14 20:00:49 PDT 2014


Author: chapuni
Date: Wed May 14 22:00:48 2014
New Revision: 208845

URL: http://llvm.org/viewvc/llvm-project?rev=208845&view=rev
Log:
Update MCOptions corresponding to r208832.

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=208845&r1=208844&r2=208845&view=diff
==============================================================================
--- dragonegg/trunk/src/Backend.cpp (original)
+++ dragonegg/trunk/src/Backend.cpp Wed May 14 22:00:48 2014
@@ -526,14 +526,14 @@ static void CreateTargetMachine(const st
 #ifdef LLVM_SET_TARGET_MACHINE_OPTIONS
   LLVM_SET_TARGET_MACHINE_OPTIONS(Options);
 #endif
+  // 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.
+  Options.MCOptions.MCUseDwarfDirectory = false;
 
   TheTarget = TME->createTargetMachine(TargetTriple, CPU, FeatureStr, Options,
                                        RelocModel, CMModel, CodeGenOptLevel());
   assert(TheTarget->getDataLayout()->isBigEndian() == BYTES_BIG_ENDIAN);
-  // 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);
 }
 
 /// output_ident - Insert a .ident directive that identifies the plugin.





More information about the llvm-commits mailing list