<div dir="ltr">Is this testable?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 13, 2015 at 9:47 AM, Ben Langmuir <span dir="ltr"><<a href="mailto:blangmuir@apple.com" target="_blank">blangmuir@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: benlangmuir<br>
Date: Tue Jan 13 11:47:38 2015<br>
New Revision: 225802<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=225802&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=225802&view=rev</a><br>
Log:<br>
Handle [extern_c] attribute in module printer<br>
<br>
I'm not sure why we have OS.indent(Indent+2) for the system attribute,<br>
but presumably we want the same behaviour for all attributes...<br>
<br>
Modified:<br>
    cfe/trunk/lib/Basic/Module.cpp<br>
<br>
Modified: cfe/trunk/lib/Basic/Module.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Module.cpp?rev=225802&r1=225801&r2=225802&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Module.cpp?rev=225802&r1=225801&r2=225802&view=diff</a><br>
==============================================================================<br>
--- cfe/trunk/lib/Basic/Module.cpp (original)<br>
+++ cfe/trunk/lib/Basic/Module.cpp Tue Jan 13 11:47:38 2015<br>
@@ -293,9 +293,12 @@ void Module::print(raw_ostream &OS, unsi<br>
     OS << "explicit ";<br>
   OS << "module " << Name;<br>
<br>
-  if (IsSystem) {<br>
+  if (IsSystem || IsExternC) {<br>
     OS.indent(Indent + 2);<br>
-    OS << " [system]";<br>
+    if (IsSystem)<br>
+      OS << " [system]";<br>
+    if (IsExternC)<br>
+      OS << " [extern_c]";<br>
   }<br>
<br>
   OS << " {\n";<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</blockquote></div><br></div>