This is an archive of the discontinued LLVM Phabricator instance.

Change DEBUG() macro to LLVM_DEBUG() in lld
ClosedPublic

Authored by Nicola on Mar 28 2018, 3:38 AM.

Details

Summary

The DEBUG() macro is too generic so it might clash with other projects.
This is going to be deprecated and replaced by LLVM_DEBUG() as soon as https://reviews.llvm.org/D43624 is submitted.

This is the command I used to do the replacement and formatting:
git grep -l 'DEBUG' | xargs sed -i 's/\bDEBUG\s\?(/LLVM_DEBUG(/g'
git diff -U0 master | ../clang/tools/clang-format/clang-format-diff.py -i -p1 -style LLVM

Diff Detail

Repository
rL LLVM

Event Timeline

Nicola created this revision.Mar 28 2018, 3:38 AM
ruiu accepted this revision.Mar 28 2018, 2:25 PM
This revision is now accepted and ready to land.Mar 28 2018, 2:25 PM
This revision was automatically updated to reflect the committed changes.