forked from OSchip/llvm-project
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:
parent
d3d7f3b5bd
commit
7615f00e51
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue