forked from OSchip/llvm-project
Split out the x86_32 an x86_64 ELF backends as they handle ELF
differently. This will make adding ELF support easier in the long run. llvm-svn: 104317
This commit is contained in:
parent
ec9d6faef0
commit
5abb6dd61e
|
@ -212,6 +212,18 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class ELFX86_32AsmBackend : public ELFX86AsmBackend {
|
||||
public:
|
||||
ELFX86_32AsmBackend(const Target &T)
|
||||
: ELFX86AsmBackend(T) {}
|
||||
};
|
||||
|
||||
class ELFX86_64AsmBackend : public ELFX86AsmBackend {
|
||||
public:
|
||||
ELFX86_64AsmBackend(const Target &T)
|
||||
: ELFX86AsmBackend(T) {}
|
||||
};
|
||||
|
||||
class DarwinX86AsmBackend : public X86AsmBackend {
|
||||
public:
|
||||
DarwinX86AsmBackend(const Target &T)
|
||||
|
@ -291,7 +303,7 @@ TargetAsmBackend *llvm::createX86_32AsmBackend(const Target &T,
|
|||
case Triple::Darwin:
|
||||
return new DarwinX86_32AsmBackend(T);
|
||||
default:
|
||||
return new ELFX86AsmBackend(T);
|
||||
return new ELFX86_32AsmBackend(T);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -301,6 +313,6 @@ TargetAsmBackend *llvm::createX86_64AsmBackend(const Target &T,
|
|||
case Triple::Darwin:
|
||||
return new DarwinX86_64AsmBackend(T);
|
||||
default:
|
||||
return new ELFX86AsmBackend(T);
|
||||
return new ELFX86_64AsmBackend(T);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue