mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
[x86] Support i386-*-*-code16 triple for emitting 16-bit code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -48,8 +48,11 @@ std::string X86_MC::ParseX86Triple(StringRef TT) {
|
||||
std::string FS;
|
||||
if (TheTriple.getArch() == Triple::x86_64)
|
||||
FS = "+64bit-mode,-32bit-mode,-16bit-mode";
|
||||
else
|
||||
else if (TheTriple.getEnvironment() != Triple::CODE16)
|
||||
FS = "-64bit-mode,+32bit-mode,-16bit-mode";
|
||||
else
|
||||
FS = "-64bit-mode,-32bit-mode,+16bit-mode";
|
||||
|
||||
return FS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user