[PATCH] D119658: [BOLT][NFC] Report errors from createBinaryContext and RewriteInstance ctor

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 13 01:12:11 PST 2022


Amir created this revision.
Herald added a reviewer: rafauler.
Herald added a subscriber: ayermolo.
Herald added a reviewer: maksfb.
Amir requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.

Refactor createBinaryContext and RewriteInstance/MachORewriteInstance
constructors to report an error in a library and fuzzer-friendly way instead of
returning a nullptr or exiting.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119658

Files:
  bolt/include/bolt/Core/BinaryContext.h
  bolt/include/bolt/Rewrite/MachORewriteInstance.h
  bolt/include/bolt/Rewrite/RewriteInstance.h
  bolt/lib/Core/BinaryContext.cpp
  bolt/lib/Rewrite/DWARFRewriter.cpp
  bolt/lib/Rewrite/MachORewriteInstance.cpp
  bolt/lib/Rewrite/RewriteInstance.cpp
  bolt/tools/driver/llvm-bolt.cpp
  bolt/tools/heatmap/heatmap.cpp
  bolt/unittests/Core/MCPlusBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119658.408240.patch
Type: text/x-patch
Size: 16212 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220213/68814f11/attachment.bin>


More information about the llvm-commits mailing list