Skip to content
  • Matthias Braun's avatar
    Move most EH from MachineModuleInfo to MachineFunction · ed14cb06
    Matthias Braun authored
    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: 288293
    ed14cb06
Loading