Or just doing nothing.  It’s a private header and is only included in 1 TU.  In that fine, cxxabi-config is already included first<br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 20, 2018 at 5:20 AM Nico Weber via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thakis added inline comments.<br>
<br>
<br>
================<br>
Comment at: libcxxabi/src/demangle/Compiler.h:23<br>
+#ifndef NDEBUG<br>
+#if __has_attribute(noinline) && __has_attribute(used)<br>
+#define DUMP_METHOD __attribute__((noinline, used))<br>
----------------<br>
erik.pilkington wrote:<br>
> This depends on `__cxxabi_config.h` to make sure that `__has_attribute` is defined on compilers that don't support it. Please add the include.<br>
Is there any harm to just #ifndef #def here instead of pulling in that whole header?<br>
<br>
<br>
<a href="https://reviews.llvm.org/D49575" rel="noreferrer" target="_blank">https://reviews.llvm.org/D49575</a><br>
<br>
<br>
<br>
</blockquote></div>