This is an archive of the discontinued LLVM Phabricator instance.

[NFC][PartialInliner]: Clean up code
ClosedPublic

Authored by etiotto on Oct 21 2020, 9:40 AM.

Details

Summary

This is a NFC patch. In the patch I:

  • make member function const where possible,
  • use LLVM_DEBUG to print debug tracers rather than a custom option,
  • pass by reference to avoid null checking
  • code formatting

Diff Detail

Event Timeline

etiotto created this revision.Oct 21 2020, 9:40 AM
etiotto requested review of this revision.Oct 21 2020, 9:40 AM
etiotto updated this revision to Diff 299787.Oct 21 2020, 12:57 PM

Fix clang-format

etiotto retitled this revision from [NFC][Partial Inline]: Clean up code to [NFC][PartialInliner]: Clean up code .Oct 22 2020, 8:01 AM
fhahn accepted this revision.Oct 22 2020, 8:11 AM

LGTM, thanks.

This revision is now accepted and ready to land.Oct 22 2020, 8:11 AM

Note: this failure looks bogus to me as it also happens in other PRs like https://reviews.llvm.org/D89964

linux > HWAddressSanitizer-x86_64.TestCases::sizes.cpp
Script:
--
: 'RUN: at line 3';      /mnt/disks/ssd0/agent/llvm-project/build/./bin/clang  --driver-mode=g++  -m64  -gline-tables-only -fsanitize=hwaddress -fuse-ld=lld -mcmodel=large -mllvm -hwasan-globals -mllvm -hwasan-use-short-granules -mllvm -hwasan-instrument-landing-pads=0 -mllvm -hwasan-instrument-personality-functions /mnt/disks/ssd0/agent/llvm-project/compiler-rt/test/hwasan/TestCases/sizes.cpp -nostdlib++ -lstdc++ -o /mnt/disks/ssd0/agent/llvm-project/build/projects/compiler-rt/test/hwasan/X86_64/TestCases/Output/sizes.cpp.tmp
This revision was landed with ongoing or failed builds.Oct 22 2020, 11:40 AM
This revision was automatically updated to reflect the committed changes.