diff options
| author | Anders Carlsson <andersca@mac.com> | 2008-12-10 02:21:04 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2008-12-10 02:21:04 +0000 |
| commit | a726c1763a44098710c6d4819abac3f148158ba8 (patch) | |
| tree | 8c4e8b367875a0f46d06242853c1793a73b0bf4b /clang/lib/CodeGen/CGObjCMac.cpp | |
| parent | f482f379ef9f3099ebbd90feee7932c8edfce679 (diff) | |
| download | bcm5719-llvm-a726c1763a44098710c6d4819abac3f148158ba8.tar.gz bcm5719-llvm-a726c1763a44098710c6d4819abac3f148158ba8.zip | |
Append an extra newline to the module inline asm if it's not empty.
llvm-svn: 60827
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 67f65599388..013b0f9cc3e 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/lib/CodeGen/CGObjCMac.cpp @@ -2189,6 +2189,10 @@ void CGObjCMac::FinishModule() { // FIXME: Uh, this isn't particularly portable. std::stringstream s; + + if (!CGM.getModule().getModuleInlineAsm().empty()) + s << "\n"; + for (std::set<IdentifierInfo*>::iterator i = LazySymbols.begin(), e = LazySymbols.end(); i != e; ++i) { s << "\t.lazy_reference .objc_class_name_" << (*i)->getName() << "\n"; @@ -2198,6 +2202,7 @@ void CGObjCMac::FinishModule() { s << "\t.objc_class_name_" << (*i)->getName() << "=0\n" << "\t.globl .objc_class_name_" << (*i)->getName() << "\n"; } + CGM.getModule().appendModuleInlineAsm(s.str()); } |

