forked from OSchip/llvm-project
lto/addAsmGlobalSymbols: fast path when no module level asm is present.
llvm-svn: 139284
This commit is contained in:
parent
8149dd6619
commit
cc2a801f64
|
@ -615,6 +615,8 @@ namespace {
|
|||
|
||||
bool LTOModule::addAsmGlobalSymbols(MCContext &Context, std::string &errMsg) {
|
||||
const std::string &inlineAsm = _module->getModuleInlineAsm();
|
||||
if (inlineAsm.empty())
|
||||
return false;
|
||||
|
||||
OwningPtr<RecordStreamer> Streamer(new RecordStreamer(Context));
|
||||
MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(inlineAsm);
|
||||
|
|
Loading…
Reference in New Issue