[commit: ghc] master: Dwarf.Types: Fix comment style (76611d7)
git at git.haskell.org
git at git.haskell.org
Sun Nov 1 14:20:50 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/76611d750247c1f6fd1323ef5564af16b97e8157/ghc
>---------------------------------------------------------------
commit 76611d750247c1f6fd1323ef5564af16b97e8157
Author: Ben Gamari <ben at smart-cactus.org>
Date: Fri Oct 30 21:02:07 2015 +0100
Dwarf.Types: Fix comment style
>---------------------------------------------------------------
76611d750247c1f6fd1323ef5564af16b97e8157
compiler/nativeGen/Dwarf/Types.hs | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/compiler/nativeGen/Dwarf/Types.hs b/compiler/nativeGen/Dwarf/Types.hs
index d558c2d..bd423b6 100644
--- a/compiler/nativeGen/Dwarf/Types.hs
+++ b/compiler/nativeGen/Dwarf/Types.hs
@@ -43,7 +43,7 @@ import Data.Char
import CodeGen.Platform
-- | Individual dwarf records. Each one will be encoded as an entry in
--- the .debug_info section.
+-- the @.debug_info@ section.
data DwarfInfo
= DwarfCompileUnit { dwChildren :: [DwarfInfo]
, dwName :: String
@@ -60,7 +60,7 @@ data DwarfInfo
, dwMarker :: CLabel }
-- | Abbreviation codes used for encoding above records in the
--- .debug_info section.
+-- @.debug_info@ section.
data DwarfAbbrev
= DwAbbrNull -- ^ Pseudo, used for marking the end of lists
| DwAbbrCompileUnit
@@ -218,7 +218,7 @@ data DwarfFrameBlock
, dwFdeUnwind :: UnwindTable
}
--- | Header for the .debug_frame section. Here we emit the "Common
+-- | Header for the @.debug_frame@ section. Here we emit the "Common
-- Information Entry" record that etablishes general call frame
-- parameters and the default stack layout.
pprDwarfFrame :: DwarfFrame -> SDoc
@@ -315,7 +315,7 @@ pprFrameBlock oldUws (DwarfFrameBlock blockLbl hasInfo uws)
vcat (map (uncurry $ pprSetUnwind plat) changed) $$
vcat (map (pprUndefUnwind plat . fst) died)
--- [Note: Info Offset]
+-- Note [Info Offset]
--
-- GDB was pretty much written with C-like programs in mind, and as a
-- result they assume that once you have a return address, it is a
@@ -398,7 +398,7 @@ pprUnwindExpr spIsCFA expr
ptext (sLit "1:")
-- | Generate code for re-setting the unwind information for a
--- register to "undefined"
+-- register to @undefined@
pprUndefUnwind :: Platform -> GlobalReg -> SDoc
pprUndefUnwind _ Sp = panic "pprUndefUnwind Sp" -- should never happen
pprUndefUnwind plat g = pprByte dW_CFA_undefined $$
More information about the ghc-commits
mailing list