Skip to content
  1. Oct 31, 2013
  2. Oct 30, 2013
    • Matt Arsenault's avatar
      Teach scalarrepl about address spaces · 38b8ecf3
      Matt Arsenault authored
      llvm-svn: 193720
      38b8ecf3
    • Rafael Espindola's avatar
      Add calls to doInitialization() and doFinalization() in verifyFunction() · 55fdcff4
      Rafael Espindola authored
      The function verifyFunction() in lib/IR/Verifier.cpp misses some
      calls. It creates a temporary FunctionPassManager that will run a
      single Verifier pass. Unfortunately, FunctionPassManager is no
      PassManager and does not call doInitialization() and doFinalization()
      by itself. Verifier does important tasks in doInitialization() such as
      collecting type information used to check DebugInfo metadata and
      doFinalization() does some additional checks. Therefore these checks
      were missed and debug info couldn't be verified at all, it just
      crashed if the function had some.
      
      verifyFunction() is currently not used in llvm unless -debug option is
      enabled, and in unittests/IR/VerifierTest.cpp
      
      VerifierTest had to be changed to create the function in a module from
      which the type debug info can be collected.
      
      Patch by Michael Kruse.
      
      llvm-svn: 193719
      55fdcff4
    • Rafael Espindola's avatar
      Produce .weak_def_can_be_hidden for some linkonce_odr values · 6f1b2852
      Rafael Espindola authored
      With this patch llvm produces a weak_def_can_be_hidden for linkonce_odr
      if they are also unnamed_addr or don't have their address taken.
      
      There is not a lot of documentation about .weak_def_can_be_hidden, but
      from the old discussion about linkonce_odr_auto_hide and the name of
      the directive this looks correct: these symbols can be hidden.
      
      Testing this with the ld64 in Xcode 5 linking clang reduces the number of
      exported symbols from 21053 to 19049.
      
      llvm-svn: 193718
      6f1b2852
    • David Blaikie's avatar
      DebugInfo: Push header handling down into CompileUnit · 6b288cfa
      David Blaikie authored
      This is a preliminary step to handling type units by abstracting over
      all (type or compile) units.
      
      llvm-svn: 193714
      6b288cfa
Loading