Skip to content
  • Matthias Braun's avatar
    Move most EH from MachineModuleInfo to MachineFunction · d0ee66c2
    Matthias Braun authored
    Recommitting r288293 with some extra fixes for GlobalISel code.
    
    Most of the exception handling members in MachineModuleInfo is actually
    per function data (talks about the "current function") so it is better
    to keep it at the function instead of the module.
    
    This is a necessary step to have machine module passes work properly.
    
    Also:
    - Rename TidyLandingPads() to tidyLandingPads()
    - Use doxygen member groups instead of "//===- EH ---"... so it is clear
      where a group ends.
    - I had to add an ugly const_cast at two places in the AsmPrinter
      because the available MachineFunction pointers are const, but the code
      wants to call tidyLandingPads() in between
      (markFunctionEnd()/endFunction()).
    
    Differential Revision: https://reviews.llvm.org/D27227
    
    llvm-svn: 288405
    d0ee66c2
Loading