[PATCH] driver: enable -use-dwarf-debug-flags

Saleem Abdulrasool compnerd at compnerd.org
Mon Mar 24 21:46:24 PDT 2014


Hi echristo,

This changes the default to embed the -cc1 flags into the emitted object files.

http://llvm-reviews.chandlerc.com/D3166

Files:
  include/clang/Driver/ToolChain.h

Index: include/clang/Driver/ToolChain.h
===================================================================
--- include/clang/Driver/ToolChain.h
+++ include/clang/Driver/ToolChain.h
@@ -238,7 +238,7 @@
 
   /// UseDwarfDebugFlags - Embed the compile options to clang into the Dwarf
   /// compile unit information.
-  virtual bool UseDwarfDebugFlags() const { return false; }
+  virtual bool UseDwarfDebugFlags() const { return true; }
 
   /// UseSjLjExceptions - Does this tool chain use SjLj exceptions.
   virtual bool UseSjLjExceptions() const { return false; }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3166.1.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140324/b9465965/attachment.bin>


More information about the cfe-commits mailing list