Skip to content
  1. Oct 30, 2013
  2. Oct 29, 2013
    • Manman Ren's avatar
      Debug Info: support for DW_FORM_ref_addr. · ce20d460
      Manman Ren authored
      To support ref_addr, we calculate the section offset of a DIE (i.e. offset
      of a DIE from beginning of the debug info section). The Offset field in DIE
      is currently CU-relative. To calculate the section offset, we add a
      DebugInfoOffset field in CompileUnit to store the offset of a CU from beginning
      of the debug info section. We set the value in DwarfUnits::computeSizeAndOffset
      for each CompileUnit.
      
      A helper function DIE::getCompileUnit is added to return the CU DIE that
      the input DIE belongs to. We also add a map CUDieMap in DwarfDebug to help
      finding the CU for a given CU DIE.
      
      For a cross-referenced DIE, we first find the CU DIE it belongs to with
      getCompileUnit, then we use CUDieMap to get the corresponding CU for the CU DIE.
      Adding the section offset of the CU with the CU-relative offset of a DIE gives
      us the seciton offset of the DIE.
      
      We correctly emit ref_addr with relocation using EmitLabelPlusOffset when
      doesDwarfUseRelocationsAcrossSections is true.
      
      This commit handles the emission of DW_FORM_ref_addr when we have an attribute
      with FORM_ref_addr. A follow-on patch will start using ref_addr when adding a
      DIEEntry. This commit will be tested and verified in the follow-on patch.
      
      Reviewed off-list by Eric, Thanks.
      
      llvm-svn: 193658
      ce20d460
    • Manman Ren's avatar
      Debug Info: instead of calling addToContextOwner which constructs the context · f4c339e0
      Manman Ren authored
      after the DIE creation, we construct the context first.
      
      Ensure that we create the context before we create a type so that we can add
      the newly created type to the parent. Remove last use of addToContextOwner
      now that it's not needed.
      
      We use createAndAddDIE to wrap around "new DIE(". Now all shareable DIEs
      should be added to their parents right after the creation.
      
      Reviewed off-list by Eric, Thanks.
      
      llvm-svn: 193657
      f4c339e0
    • Manman Ren's avatar
      Struct byval cleanup: add helper functions to reduce code duplication. · b504f494
      Manman Ren authored
      Helper functions are added:
      emitPostLd: emit a post-increment load operation with given size.
      emitPostSt: emit a post-increment store operation with given size.
      
      No functionality change.
      
      llvm-svn: 193656
      b504f494
    • Evgeniy Stepanov's avatar
      [sanitizer] Intercept drand48_r, lrand48_r. · 0bd1f00e
      Evgeniy Stepanov authored
      llvm-svn: 193655
      0bd1f00e
    • Evgeniy Stepanov's avatar
      [msandr] Remove use of std::set in msandr client to avoid reentrancy issues. · 867dd748
      Evgeniy Stepanov authored
      Patch by Qin Zhao.
      
      llvm-svn: 193654
      867dd748
Loading