[cfe-commits] r60827 - /cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Anders Carlsson
andersca at mac.com
Tue Dec 9 18:21:04 PST 2008
Author: andersca
Date: Tue Dec 9 20:21:04 2008
New Revision: 60827
URL: http://llvm.org/viewvc/llvm-project?rev=60827&view=rev
Log:
Append an extra newline to the module inline asm if it's not empty.
Modified:
cfe/trunk/lib/CodeGen/CGObjCMac.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCMac.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCMac.cpp?rev=60827&r1=60826&r2=60827&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCMac.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCMac.cpp Tue Dec 9 20:21:04 2008
@@ -2189,6 +2189,10 @@
// 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 @@
s << "\t.objc_class_name_" << (*i)->getName() << "=0\n"
<< "\t.globl .objc_class_name_" << (*i)->getName() << "\n";
}
+
CGM.getModule().appendModuleInlineAsm(s.str());
}
More information about the cfe-commits
mailing list