<div dir="ltr">Just noticed bash has removed the "$S" from <span style="font-family:arial,sans-serif;font-size:13px">".debug$S" in the commit message.</span></div><div class="gmail_extra"><br><br><div class="gmail_quote">

2014-01-27 Timur Iskhodzhanov <span dir="ltr"><<a href="mailto:timurrrr@google.com" target="_blank">timurrrr@google.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Author: timurrrr<br>
Date: Mon Jan 27 21:48:44 2014<br>
New Revision: 200285<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=200285&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=200285&view=rev</a><br>
Log:<br>
MC: Add a .debug section that we'll soon use to emit debug info into COFF files<br>
<br>
Modified:<br>
    llvm/trunk/include/llvm/MC/MCObjectFileInfo.h<br>
    llvm/trunk/lib/MC/MCObjectFileInfo.cpp<br>
<br>
Modified: llvm/trunk/include/llvm/MC/MCObjectFileInfo.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFileInfo.h?rev=200285&r1=200284&r2=200285&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCObjectFileInfo.h?rev=200285&r1=200284&r2=200285&view=diff</a><br>


==============================================================================<br>
--- llvm/trunk/include/llvm/MC/MCObjectFileInfo.h (original)<br>
+++ llvm/trunk/include/llvm/MC/MCObjectFileInfo.h Mon Jan 27 21:48:44 2014<br>
@@ -129,6 +129,8 @@ protected:<br>
   const MCSection *DwarfGnuPubNamesSection;<br>
   const MCSection *DwarfGnuPubTypesSection;<br>
<br>
+  const MCSection *COFFDebugSymbolsSection;<br>
+<br>
   // Extra TLS Variable Data section.  If the target needs to put additional<br>
   // information for a TLS variable, it'll go here.<br>
   const MCSection *TLSExtraDataSection;<br>
@@ -283,6 +285,10 @@ public:<br>
     return DwarfAddrSection;<br>
   }<br>
<br>
+  const MCSection *getCOFFDebugSymbolsSection() const {<br>
+    return COFFDebugSymbolsSection;<br>
+  }<br>
+<br>
   const MCSection *getTLSExtraDataSection() const {<br>
     return TLSExtraDataSection;<br>
   }<br>
<br>
Modified: llvm/trunk/lib/MC/MCObjectFileInfo.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=200285&r1=200284&r2=200285&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCObjectFileInfo.cpp?rev=200285&r1=200284&r2=200285&view=diff</a><br>


==============================================================================<br>
--- llvm/trunk/lib/MC/MCObjectFileInfo.cpp (original)<br>
+++ llvm/trunk/lib/MC/MCObjectFileInfo.cpp Mon Jan 27 21:48:44 2014<br>
@@ -609,6 +609,13 @@ void MCObjectFileInfo::InitCOFFMCObjectF<br>
                         SectionKind::getReadOnly());<br>
<br>
   // Debug info.<br>
+  COFFDebugSymbolsSection =<br>
+    Ctx->getCOFFSection(".debug$S",<br>
+                        COFF::IMAGE_SCN_MEM_DISCARDABLE |<br>
+                        COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |<br>
+                        COFF::IMAGE_SCN_MEM_READ,<br>
+                        SectionKind::getMetadata());<br>
+<br>
   DwarfAbbrevSection =<br>
     Ctx->getCOFFSection(".debug_abbrev",<br>
                         COFF::IMAGE_SCN_MEM_DISCARDABLE |<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>