diff options
author | Ben Langmuir <blangmuir@apple.com> | 2015-01-13 17:47:38 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2015-01-13 17:47:38 +0000 |
commit | 9ba68b2714e8ab9a6f3ed755096c95d5918e895d (patch) | |
tree | 05c54e68baf114912f3ae848ff223f3494d57848 /lib/Basic/Module.cpp | |
parent | 8cafb93a9afafe18c16123d69b73d9e5ffb50f6f (diff) | |
download | clang-9ba68b2714e8ab9a6f3ed755096c95d5918e895d.tar.gz |
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...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Module.cpp')
-rw-r--r-- | lib/Basic/Module.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Basic/Module.cpp b/lib/Basic/Module.cpp index ba3526c334..03f9bd3f32 100644 --- a/lib/Basic/Module.cpp +++ b/lib/Basic/Module.cpp @@ -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"; |