1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

lto/addAsmGlobalSymbols: fast path when no module level asm is present.

llvm-svn: 139284
This commit is contained in:
Ivan Krasin 2011-09-08 07:38:25 +00:00
parent 6d62a9f1b3
commit 2f2f63807f

View File

@ -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);