mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Be more specific about return type of MachOUniversalBinary::getObjectForArch
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
10051f0f62
commit
9170808b2a
@ -25,8 +25,6 @@
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
namespace object {
|
namespace object {
|
||||||
|
|
||||||
class ObjectFile;
|
|
||||||
|
|
||||||
class MachOUniversalBinary : public Binary {
|
class MachOUniversalBinary : public Binary {
|
||||||
virtual void anchor();
|
virtual void anchor();
|
||||||
|
|
||||||
@ -58,7 +56,7 @@ public:
|
|||||||
return T.getArchName();
|
return T.getArchName();
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<std::unique_ptr<ObjectFile>> getAsObjectFile() const;
|
ErrorOr<std::unique_ptr<MachOObjectFile>> getAsObjectFile() const;
|
||||||
|
|
||||||
std::error_code getAsArchive(std::unique_ptr<Archive> &Result) const;
|
std::error_code getAsArchive(std::unique_ptr<Archive> &Result) const;
|
||||||
};
|
};
|
||||||
@ -102,7 +100,7 @@ public:
|
|||||||
return V->isMachOUniversalBinary();
|
return V->isMachOUniversalBinary();
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<std::unique_ptr<ObjectFile>>
|
ErrorOr<std::unique_ptr<MachOObjectFile>>
|
||||||
getObjectForArch(Triple::ArchType Arch) const;
|
getObjectForArch(Triple::ArchType Arch) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ MachOUniversalBinary::ObjectForArch::ObjectForArch(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<std::unique_ptr<ObjectFile>>
|
ErrorOr<std::unique_ptr<MachOObjectFile>>
|
||||||
MachOUniversalBinary::ObjectForArch::getAsObjectFile() const {
|
MachOUniversalBinary::ObjectForArch::getAsObjectFile() const {
|
||||||
if (Parent) {
|
if (Parent) {
|
||||||
StringRef ParentData = Parent->getData();
|
StringRef ParentData = Parent->getData();
|
||||||
@ -139,7 +139,7 @@ static bool getCTMForArch(Triple::ArchType Arch, MachO::CPUType &CTM) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorOr<std::unique_ptr<ObjectFile>>
|
ErrorOr<std::unique_ptr<MachOObjectFile>>
|
||||||
MachOUniversalBinary::getObjectForArch(Triple::ArchType Arch) const {
|
MachOUniversalBinary::getObjectForArch(Triple::ArchType Arch) const {
|
||||||
MachO::CPUType CTM;
|
MachO::CPUType CTM;
|
||||||
if (!getCTMForArch(Arch, CTM))
|
if (!getCTMForArch(Arch, CTM))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user