[PATCH] D47528: [Release Notes] Add release note for the new LLVM_DEBUG

Nicola Zaghen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 30 03:34:01 PDT 2018


Nicola created this revision.
Nicola added a reviewer: dsanders.
Herald added a subscriber: llvm-commits.

This is to provide a way to migrate from the old DEBUG macro to the new one.


Repository:
  rL LLVM

https://reviews.llvm.org/D47528

Files:
  docs/ReleaseNotes.rst


Index: docs/ReleaseNotes.rst
===================================================================
--- docs/ReleaseNotes.rst
+++ docs/ReleaseNotes.rst
@@ -88,6 +88,14 @@
   ``llvm/Config/llvm-config.h``.  If you used this macro, use the compiler-set
   ``_WIN32`` instead which is set exactly when ``LLVM_ON_WIN32`` used to be set.
 
+* The ``DEBUG`` macro has been renamed to ``LLVM_DEBUG``. The interface remains
+  the same.  If you used this macro you need to migrate to the new one, you can
+  do this with the following bash command:
+
+.. code-block:: bash
+
+    git grep -l 'DEBUG' | xargs perl -pi -e 's/\bDEBUG\s?\(/LLVM_DEBUG(/g'
+
 * Note..
 
 .. NOTE


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47528.149078.patch
Type: text/x-patch
Size: 663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180530/8331df84/attachment.bin>


More information about the llvm-commits mailing list