Skip to content
  1. Mar 13, 2009
  2. Mar 11, 2009
  3. Mar 10, 2009
  4. Mar 09, 2009
  5. Mar 07, 2009
    • Duncan Sands's avatar
      Introduce new linkage types linkonce_odr, weak_odr, common_odr · 12da8ce3
      Duncan Sands authored
      and extern_weak_odr.  These are the same as the non-odr versions,
      except that they indicate that the global will only be overridden
      by an *equivalent* global.  In C, a function with weak linkage can
      be overridden by a function which behaves completely differently.
      This means that IP passes have to skip weak functions, since any
      deductions made from the function definition might be wrong, since
      the definition could be replaced by something completely different
      at link time.   This is not allowed in C++, thanks to the ODR
      (One-Definition-Rule): if a function is replaced by another at
      link-time, then the new function must be the same as the original
      function.  If a language knows that a function or other global can
      only be overridden by an equivalent global, it can give it the
      weak_odr linkage type, and the optimizers will understand that it
      is alright to make deductions based on the function body.  The
      code generators on the other hand map weak and weak_odr linkage
      to the same thing.
      
      llvm-svn: 66339
      12da8ce3
  6. Feb 27, 2009
  7. Feb 25, 2009
    • Devang Patel's avatar
      · 7e7fa83f
      Devang Patel authored
      Print variable's display name in dwarf DIE.
      
      llvm-svn: 65468
      7e7fa83f
    • Evan Cheng's avatar
      Clean up dwarf writer, part 1. This eliminated the horrible recursive... · 86673f28
      Evan Cheng authored
      Clean up dwarf writer, part 1. This eliminated the horrible recursive getGlobalVariablesUsing and replaced it something readable. It eliminated use of slow UniqueVector and replaced it with StringMap, SmallVector, and DenseMap, etc. It also fixed some non-deterministic behavior.
      
      This is a very minor compile time win.
      
      llvm-svn: 65438
      86673f28
  8. Feb 24, 2009
  9. Feb 21, 2009
    • Anton Korobeynikov's avatar
      Drop bunch of half-working stuff in the ext_weak linkage support. · 42aae865
      Anton Korobeynikov authored
      Now we're using one gross, but quite robust hack :) (previous ones
      did not work, for example, when ext_weak symbol was used deep inside
      constant expression in the initializer).
      
      The proper fix of this problem will require some quite huge asmprinter
      changes and that's why was postponed. This fixes PR3629 by the way :)
      
      llvm-svn: 65230
      42aae865
  10. Feb 20, 2009
  11. Feb 18, 2009
  12. Feb 17, 2009
  13. Feb 10, 2009
  14. Feb 05, 2009
  15. Feb 03, 2009
  16. Feb 02, 2009
  17. Jan 30, 2009
    • Devang Patel's avatar
      · c094970c
      Devang Patel authored
       Each input file is encoded as a separate compile unit in LLVM debugging
      information output. However, many target specific tool chains prefer to encode
      only one compile unit in an object file. In this situation, the LLVM code
      generator will include  debugging information entities in the compile unit 
      that is marked as main compile unit. The code generator accepts maximum one main
      compile unit per module. If a module does not contain any main compile unit 
      then the code generator will emit multiple compile units in the output object 
      file.
      
      [Part 1]
      
      Update DebugInfo APIs to accept optional boolean value while creating DICompileUnit  to mark the unit as "main" unit. By defaults all units are considered  non-main.  Update SourceLevelDebugging.html to document "main" compile unit.
      
      Update DebugInfo APIs to not accept and encode separate source file/directory entries while creating various llvm.dbg.* entities. There was a recent, yet to be documented, change to include this additional information so no documentation changes are required here.
      
      Update DwarfDebug to handle "main" compile unit. If "main" compile unit is seen then all DIEs are inserted into "main" compile unit. All other compile units are used to find source location for llvm.dbg.* values. If there is not any "main" compile unit then create unique compile unit DIEs for each llvm.dbg.compile_unit.
      
      [Part 2]
      
      Create separate llvm.dbg.compile_unit for each input file. Mark compile unit create for main_input_filename as "main" compile unit. Use appropriate compile unit, based on source location information collected from the tree node, while creating llvm.dbg.* values using DebugInfo APIs.
      
      ---
      
      This is Part 1.
      
      llvm-svn: 63400
      c094970c
    • Sanjiv Gupta's avatar
      Enable emitting of constant values in non-default address space as well. The... · 964a29f6
      Sanjiv Gupta authored
      Enable emitting of constant values in non-default address space as well. The APIs emitting constants now take an additional parameter signifying the address space in which to emit. The APIs like getData8BitsDirective() etc are made virtual enabling targets to be able to define appropirate directivers for various sizes and address spaces.
      
      llvm-svn: 63377
      964a29f6
    • Devang Patel's avatar
      Remove dead code, again. · 33a21670
      Devang Patel authored
      llvm-svn: 63358
      33a21670
    • Devang Patel's avatar
      Remove dead code. · 776a4c5b
      Devang Patel authored
      llvm-svn: 63357
      776a4c5b
    • Devang Patel's avatar
      Add DW_AT_declaration for class methods. · 4ba91058
      Devang Patel authored
      llvm-svn: 63356
      4ba91058
  18. Jan 28, 2009
Loading