Handle [extern_c] attribute in module printer

I'm not sure why we have OS.indent(Indent+2) for the system attribute,
but presumably we want the same behaviour for all attributes...

llvm-svn: 225802
This commit is contained in:
Ben Langmuir 2015-01-13 17:47:38 +00:00
parent d3d7f3b5bd
commit 7615f00e51
1 changed files with 5 additions and 2 deletions

View File

@ -293,9 +293,12 @@ void Module::print(raw_ostream &OS, unsigned Indent) const {
OS << "explicit ";
OS << "module " << Name;
if (IsSystem) {
if (IsSystem || IsExternC) {
OS.indent(Indent + 2);
OS << " [system]";
if (IsSystem)
OS << " [system]";
if (IsExternC)
OS << " [extern_c]";
}
OS << " {\n";