Skip to content
Snippets Groups Projects
  1. Aug 29, 2010
  2. Aug 04, 2010
  3. May 04, 2010
  4. Mar 01, 2010
  5. Feb 06, 2010
  6. Jan 15, 2010
  7. Aug 26, 2009
  8. Jul 27, 2009
  9. Jul 22, 2009
  10. Jul 17, 2009
  11. Jul 08, 2009
  12. Jun 04, 2009
  13. Mar 30, 2009
  14. Mar 11, 2009
  15. Mar 07, 2009
    • Duncan Sands's avatar
      Introduce new linkage types linkonce_odr, weak_odr, common_odr · 667d4b8d
      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.
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66339 91177308-0d34-0410-b5e6-96231b3b80d8
      667d4b8d
  16. Jan 05, 2009
  17. Sep 15, 2008
  18. Jun 09, 2008
  19. Jun 02, 2008
  20. May 23, 2008
  21. May 22, 2008
Loading