Skip to content
  1. Jul 28, 2009
    • Chris Lattner's avatar
      Rip all of the global variable lowering logic out of TargetAsmInfo. Since · 5e693ed0
      Chris Lattner authored
      it is highly specific to the object file that will be generated in the end,
      this introduces a new TargetLoweringObjectFile interface that is implemented
      for each of ELF/MachO/COFF/Alpha/PIC16 and XCore.
      
      Though still is still a brutal and ugly refactoring, this is a major step
      towards goodness.
      
      This patch also:
      1. fixes a bunch of dangling pointer problems in the PIC16 backend.
      2. disables the TargetLowering copy ctor which PIC16 was accidentally using.
      3. gets us closer to xcore having its own crazy target section flags and
         pic16 not having to shadow sections with its own objects.
      4. fixes wierdness where ELF targets would set CStringSection but not
         CStringSection_.  Factor the code better.
      5. fixes some bugs in string lowering on ELF targets.
      
      llvm-svn: 77294
      5e693ed0
  2. Jul 27, 2009
  3. Jul 26, 2009
  4. Jul 24, 2009
  5. Jul 22, 2009
    • David Greene's avatar
      · 6e2eda1c
      David Greene authored
      Put comment printing under asm-verbose.
      
      llvm-svn: 76780
      6e2eda1c
    • Chris Lattner's avatar
      remove the SelectSectionForMachineConst hook, replacing it with · b300a4f9
      Chris Lattner authored
      a new getSectionForMergableConstant hook.  This removes one dependence
      of TAI on Type, and provides the hook with enough info to make the 
      right decision based on whether the global has relocations etc.
      
      llvm-svn: 76705
      b300a4f9
  6. Jul 21, 2009
  7. Jul 20, 2009
  8. Jul 18, 2009
  9. Jul 17, 2009
  10. Jul 16, 2009
  11. Jul 15, 2009
  12. Jul 14, 2009
    • David Greene's avatar
      · a31f96cf
      David Greene authored
      Have asm printers use formatted_raw_ostream directly to avoid a
      dynamic_cast<>.
      
      llvm-svn: 75670
      a31f96cf
    • Chris Lattner's avatar
      Reapply my previous asmprinter changes now with more testing and two · 8c9a96b9
      Chris Lattner authored
      additional bug fixes:
      
      1. The bug that everyone hit was a problem in the asmprinter where it
         would remove $stub but keep the L prefix on a name when emitting the
         indirect symbol.  This is easy to fix by keeping the name of the stub
         and the name of the symbol in a StringMap instead of just keeping a
         StringSet and trying to reconstruct it late.
      
      2. There was a problem printing the personality function.  The current
         logic to print out the personality function from the DWARF information
         is a bit of a cesspool right now that duplicates a bunch of other 
         logic in the asm printer.  The short version of it is that it depends
         on emitting both the L and _ prefix for symbols (at least on darwin)
         and until I can untangle it, it is best to switch the mangler back to
         emitting both prefixes.
      
      llvm-svn: 75646
      8c9a96b9
    • Torok Edwin's avatar
      llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable. · fbcc663c
      Torok Edwin authored
      This adds location info for all llvm_unreachable calls (which is a macro now) in
      !NDEBUG builds.
      In NDEBUG builds location info and the message is off (it only prints
      "UREACHABLE executed").
      
      llvm-svn: 75640
      fbcc663c
    • Daniel Dunbar's avatar
      Revert r7561{9,8,7,6}, which depend on r75610. · eb3e4271
      Daniel Dunbar authored
      --- Reverse-merging r75619 into '.':
      U    lib/Target/DarwinTargetAsmInfo.cpp
      U    lib/CodeGen/AsmPrinter/AsmPrinter.cpp
      --- Reverse-merging r75618 into '.':
      U    lib/CodeGen/ELFWriter.cpp
      U    lib/CodeGen/MachOCodeEmitter.cpp
      U    lib/CodeGen/MachOWriter.cpp
      --- Reverse-merging r75617 into '.':
      U    lib/Target/CBackend/CBackend.cpp
      --- Reverse-merging r75616 into '.':
      U    tools/bugpoint/Miscompilation.cpp
      U    tools/lto/LTOCodeGenerator.cpp
      U    tools/lto/LTOModule.cpp
      
      llvm-svn: 75638
      eb3e4271
    • Chris Lattner's avatar
      rename getValueName -> getMangledName. These two files have very · 3af24cc2
      Chris Lattner authored
      dubious looking things that I need to investigate in more detail.
      
      llvm-svn: 75619
      3af24cc2
    • Chris Lattner's avatar
      Change the internal interface to makeNameProper to take a bool that · f34815b3
      Chris Lattner authored
      indicates whether the label is private or not, instead of taking
      prefix stuff.  One effect of this is that symbols will be generated
      with *just* the private prefix, instead of both the private prefix
      *and* the user-label-prefix, but this doesn't matter as long as it
      is consistent.  For example we'll now get "Lfoo" instead of "L_foo".
      These are just assembler temporary labels anyway, so they never even
      make it into the .o file.
      
      llvm-svn: 75607
      f34815b3
    • Devang Patel's avatar
      Do not use Mangler to remove '1' from linkage name. · cdfc858e
      Devang Patel authored
      llvm-svn: 75574
      cdfc858e
    • Devang Patel's avatar
      Use assertion. · 9efced98
      Devang Patel authored
      llvm-svn: 75540
      9efced98
  13. Jul 13, 2009
  14. Jul 11, 2009
Loading