llvm.org GIT mirror llvm / 6d483c2
lto/addAsmGlobalSymbols: fast path when no module level asm is present. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139284 91177308-0d34-0410-b5e6-96231b3b80d8 Ivan Krasin 8 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
614614
615615 bool LTOModule::addAsmGlobalSymbols(MCContext &Context, std::string &errMsg) {
616616 const std::string &inlineAsm = _module->getModuleInlineAsm();
617 if (inlineAsm.empty())
618 return false;
617619
618620 OwningPtr Streamer(new RecordStreamer(Context));
619621 MemoryBuffer *Buffer = MemoryBuffer::getMemBuffer(inlineAsm);