Index: tools/lto/LTOModule.cpp |
=================================================================== |
--- tools/lto/LTOModule.cpp (revision 139262) |
+++ tools/lto/LTOModule.cpp (working copy) |
@@ -615,6 +615,9 @@ |
bool LTOModule::addAsmGlobalSymbols(MCContext &Context) { |
const std::string &inlineAsm = _module->getModuleInlineAsm(); |
+ if (inlineAsm == "") { |
nlewycky
2011/09/08 00:31:52
inlineAsm.empty(), and this file doesn't use {} in
krasin
2011/09/08 00:34:23
Done.
|
+ return false; |
+ } |
OwningPtr<RecordStreamer> Streamer(new RecordStreamer(Context)); |
MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(inlineAsm); |