1. May 18, 2017
    • Zachary Turner's avatar
      Workaround for incorrect Win32 header on GCC. · 0daa7074
      Zachary Turner authored
      llvm-svn: 303272
      0daa7074
    • Zachary Turner's avatar
      [CodeView] Simplify the use of visiting type records & streams. · 1d795c45
      Zachary Turner authored
      There is often a lot of boilerplate code required to visit a type
      record or type stream.  The #1 use case is that you have a sequence
      of bytes that represent one or more records, and you want to
      deserialize each one, switch on it, and call a callback with the
      deserialized record that the user can examine.  Currently this
      requires at least 6 lines of code:
      
        codeview::TypeVisitorCallbackPipeline Pipeline;
        Pipeline.addCallbackToPipeline(Deserializer);
        Pipeline.addCallbackToPipeline(MyCallbacks);
      
        codeview::CVTypeVisitor Visitor(Pipeline);
        consumeError(Visitor.visitTypeRecord(Record));
      
      With this patch, it becomes one line of code:
      
        consumeError(codeview::visitTypeRecord(Record, MyCallbacks));
      
      This is done by having the deserialization happen internally inside
      of the visitTypeRecord function.  Since this is occasionally not
      desirable, the function provides a 3rd parameter that can be used
      to change this behavior.
      
      Hopefully this can significantly reduce the barrier to entry
      to using the visitation infrastructure.
      
      Differential Revision: https://reviews.llvm.org/D33245
      
      llvm-svn: 303271
      1d795c45
    • Hans Wennborg's avatar
      Revert r303225 "Garbage collect dllimported symbols." · e67c5f6b
      Hans Wennborg authored
      and follow-up r303226 "Fix Windows buildbots."
      
      This broke the sanitizer-windows buildbot.
      
      > Previously, the garbage collector (enabled by default or by explicitly
      > passing /opt:ref) did not kill dllimported symbols. As a result,
      > dllimported symbols could be added to resulting executables' dllimport
      > list even if no one was actually using them.
      >
      > This patch implements dllexported symbol garbage collection. Just like
      > COMDAT sections, dllimported symbols now have Live bits to manage their
      > liveness, and MarkLive marks reachable dllimported symbols.
      >
      > Fixes https://bugs.llvm.org/show_bug.cgi?id=32950
      >
      > Reviewers: pcc
      >
      > Subscribers: llvm-commits
      >
      > Differential Revision: https://reviews.llvm.org/D33264
      
      llvm-svn: 303270
      e67c5f6b
  2. May 17, 2017