mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Rename createIRObjectFile to just create.
It is a static method of IRObjectFile, so having to use IRObjectFile::createIRObjectFile was redundant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223822 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -33,7 +33,7 @@ ErrorOr<std::unique_ptr<SymbolicFile>> SymbolicFile::createSymbolicFile(
|
||||
switch (Type) {
|
||||
case sys::fs::file_magic::bitcode:
|
||||
if (Context)
|
||||
return IRObjectFile::createIRObjectFile(Object, *Context);
|
||||
return IRObjectFile::create(Object, *Context);
|
||||
// Fallthrough
|
||||
case sys::fs::file_magic::unknown:
|
||||
case sys::fs::file_magic::archive:
|
||||
@ -69,7 +69,7 @@ ErrorOr<std::unique_ptr<SymbolicFile>> SymbolicFile::createSymbolicFile(
|
||||
if (!BCData)
|
||||
return std::move(Obj);
|
||||
|
||||
return IRObjectFile::createIRObjectFile(
|
||||
return IRObjectFile::create(
|
||||
MemoryBufferRef(BCData->getBuffer(), Object.getBufferIdentifier()),
|
||||
*Context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user