Skip to content
  1. Oct 21, 2013
    • David Blaikie's avatar
      DebugInfo: Hash DW_FORM_GNU_str_index as a string. · 63bb3e11
      David Blaikie authored
      Found while adding type safety to the various DWARF enumerations (form,
      attribute, tag, etc) that caused Clang to warn on an incompletely
      covered switch. Converting the comment to a default/unreachable
      uncovered this case of an unsupported form encoding. Seems we were
      skipping fission strings entirely.
      
      llvm-svn: 193089
      63bb3e11
  2. Oct 20, 2013
    • Peter Collingbourne's avatar
      Emit prefix data after debug and EH directives. · e9f45e25
      Peter Collingbourne authored
      This ensures that the prefix data is treated as part of the function for
      the purpose of debug info.  This provides a better debugging experience,
      among other things by allowing a debug info client to correctly look up
      a function in debug info given a function pointer.
      
      llvm-svn: 193042
      e9f45e25
  3. Oct 19, 2013
  4. Oct 18, 2013
  5. Oct 17, 2013
  6. Oct 16, 2013
  7. Oct 15, 2013
  8. Oct 14, 2013
    • Manman Ren's avatar
      Debug Info: static member DIE creation. · c6b63927
      Manman Ren authored
      Clean up creation of static member DIEs. We can create static member DIEs from
      two places, so we call getOrCreateStaticMemberDIE from the two places.
      
      getOrCreateStaticMemberDIE will get or create the context DIE first, then it
      will check if the DIE already exists, if not, we create the static member DIE
      and add it to the context.
      
      Creation of static member DIEs are handled in a similar way as subprogram DIEs.
      
      llvm-svn: 192618
      c6b63927
  9. Oct 12, 2013
  10. Oct 11, 2013
    • Justin Holewinski's avatar
      Make AsmPrinter::emitImplicitDef a virtual method so targets can emit custom... · 660597d1
      Justin Holewinski authored
      Make AsmPrinter::emitImplicitDef a virtual method so targets can emit custom comments for implicit defs
      
      For NVPTX, this fixes a crash where the emitImplicitDef implementation was expecting physical registers,
      while NVPTX uses virtual registers (with a couple of exceptions).  Now, the implicit def comment will be
      emitted as a true PTX register name. Other targets can use this to customize the output of implicit def
      comments.
      
      Fixes PR17519
      
      llvm-svn: 192444
      660597d1
  11. Oct 10, 2013
  12. Oct 09, 2013
  13. Oct 08, 2013
  14. Oct 07, 2013
  15. Oct 06, 2013
  16. Oct 05, 2013
    • Rafael Espindola's avatar
      Remove some really nasty uses of hasRawTextSupport. · ac4ad25a
      Rafael Espindola authored
      When MC was first added, targets could use hasRawTextSupport to keep features
      working before they were added to the MC interface.
      
      The design goal of MC is to provide an uniform api for printing assembly and
      object files. Short of relaxations and other corner cases, a object file is
      just another representation of the assembly.
      
      It was never the intention that targets would keep doing things like
      
      if (hasRawTextSupport())
        Set flags in one way.
      else
        Set flags in another way.
      
      When they do that they create two code paths and the object file is no longer
      just another representation of the assembly. This also then requires testing
      with llc -filetype=obj, which is extremelly brittle.
      
      This patch removes some of these hacks by replacing them with smaller ones.
      The ARM flag setting is trivial, so I just moved it to the constructor. For
      Mips, the patch adds two temporary hack directives that allow the assembly
      to represent the same things as the object file was already able to.
      
      The hope is that the mips developers will replace the hack directives with
      the same ones that gas uses and drop the -print-hack-directives flag.
      
      I will also try to implement a target streamer interface, so that we can
      move this out of the common code.
      
      In summary, for any new work, two rules of the thumb are
        * Don't use "llc -filetype=obj" in tests.
        * Don't add calls to hasRawTextSupport.
      
      llvm-svn: 192035
      ac4ad25a
    • Manman Ren's avatar
      Debug Info: In DIBuilder, the derived-from field of a DW_TAG_pointer_type · b3388601
      Manman Ren authored
      is updated to use DITypeRef.
      
      Move isUnsignedDIType and getOriginalTypeSize from DebugInfo.h to be static
      helper functions in DwarfCompileUnit. We already have a static helper function
      "isTypeSigned" in DwarfCompileUnit, and a pointer to DwarfDebug is added to
      resolve the derived-from field. All three functions need to go across link
      for derived-from fields, so we need to get hold of a type identifier map.
      
      A pointer to DwarfDebug is also added to DbgVariable in order to resolve the
      derived-from field.
      
      Debug info verifier is updated to check a derived-from field is a TypeRef.
      Verifier will not go across link for derived-from fields, in debug info finder,
      we go across the link to add derived-from fields to types.
      
      Function getDICompositeType is only used by dragonegg and since dragonegg does
      not generate identifier for types, we use an empty map to resolve the
      derived-from field.
      
      When printing a derived-from field, we use DITypeRef::getName to either return
      the type identifier or getName of the DIType.
      
      A paired commit at clang is required due to changes to DIBuilder.
      
      llvm-svn: 192018
      b3388601
    • Eric Christopher's avatar
      Reorganize some member variables and update a comment. · 3264a48a
      Eric Christopher authored
      llvm-svn: 192017
      3264a48a
    • Eric Christopher's avatar
      Fix one comment and update another. Slightly reformat. · 87b9c49c
      Eric Christopher authored
      llvm-svn: 192016
      87b9c49c
    • Eric Christopher's avatar
      Add a resolve method on CompileUnit that forwards to DwarfDebug. · 9e429ae7
      Eric Christopher authored
      llvm-svn: 192014
      9e429ae7
    • Eric Christopher's avatar
      Make a bunch of CompileUnit member functions private. · fa205cad
      Eric Christopher authored
      llvm-svn: 192009
      fa205cad
    • David Blaikie's avatar
      Minor formatting/comment rewording/etc. · 93ff1eb5
      David Blaikie authored
      llvm-svn: 192005
      93ff1eb5
Loading