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:
parent
6d62a9f1b3
commit
2f2f63807f
@ -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
Block a user