[BOLT][NFC] Rename {MachO,}RewriteInstance::create methods
authorAmir Ayupov <aaupov@fb.com>
Wed, 4 May 2022 03:29:13 +0000 (20:29 -0700)
committerAmir Ayupov <aaupov@fb.com>
Thu, 2 Feb 2023 20:30:45 +0000 (12:30 -0800)
commit16492a6143aba599beaac71752f612751ab3af09
treef78abaafa159b152e600fc0430abfb62d53adf75
parent0be684ed97397ef06c1ba391df0cf84b87edb792
[BOLT][NFC] Rename {MachO,}RewriteInstance::create methods

Follow the code style of fallible constructors in [LLVM Programmer's Manual]
(https://llvm.org/docs/ProgrammersManual.html#fallible-constructors)
and rename `RewriteInstance::createRewriteInstance` to `RewriteInstance::create`

Reviewed By: #bolt, rafauler

Differential Revision: https://reviews.llvm.org/D143119
bolt/include/bolt/Rewrite/MachORewriteInstance.h
bolt/include/bolt/Rewrite/RewriteInstance.h
bolt/lib/Rewrite/MachORewriteInstance.cpp
bolt/lib/Rewrite/RewriteInstance.cpp
bolt/tools/driver/llvm-bolt.cpp
bolt/tools/heatmap/heatmap.cpp
bolt/tools/llvm-bolt-fuzzer/llvm-bolt-fuzzer.cpp