mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove some dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78219 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74f6f9a931
commit
e22f4da01d
@ -81,10 +81,6 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &FS,
|
||||
if (TT.find("-darwin") != std::string::npos)
|
||||
// arm-darwin
|
||||
TargetType = isDarwin;
|
||||
} else if (TT.empty()) {
|
||||
#if defined(__APPLE__)
|
||||
TargetType = isDarwin;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (TT.find("eabi") != std::string::npos)
|
||||
|
@ -103,15 +103,6 @@ PPCSubtarget::PPCSubtarget(const std::string &TT, const std::string &FS,
|
||||
else
|
||||
DarwinVers = 8; // Minimum supported darwin is Tiger.
|
||||
}
|
||||
} else if (TT.empty()) {
|
||||
// Try to autosense the subtarget from the host compiler.
|
||||
#if defined(__APPLE__)
|
||||
#if __APPLE_CC__ > 5400
|
||||
DarwinVers = 9; // GCC 5400+ is Leopard.
|
||||
#else
|
||||
DarwinVers = 8; // Minimum supported darwin is Tiger.
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
// Set up darwin-specific properties.
|
||||
|
@ -458,31 +458,10 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &FS,
|
||||
TargetType = isWindows;
|
||||
} else if (TT.find("windows") != std::string::npos) {
|
||||
TargetType = isWindows;
|
||||
}
|
||||
else if (TT.find("-cl") != std::string::npos) {
|
||||
} else if (TT.find("-cl") != std::string::npos) {
|
||||
TargetType = isDarwin;
|
||||
DarwinVers = 9;
|
||||
}
|
||||
} else if (TT.empty()) {
|
||||
#if defined(__CYGWIN__)
|
||||
TargetType = isCygwin;
|
||||
#elif defined(__MINGW32__) || defined(__MINGW64__)
|
||||
TargetType = isMingw;
|
||||
#elif defined(__APPLE__)
|
||||
TargetType = isDarwin;
|
||||
#if __APPLE_CC__ > 5400
|
||||
DarwinVers = 9; // GCC 5400+ is Leopard.
|
||||
#else
|
||||
DarwinVers = 8; // Minimum supported darwin is Tiger.
|
||||
#endif
|
||||
|
||||
#elif defined(_WIN32) || defined(_WIN64)
|
||||
TargetType = isWindows;
|
||||
#elif defined(__linux__)
|
||||
// Linux doesn't imply ELF, but we don't currently support anything else.
|
||||
TargetType = isELF;
|
||||
IsLinux = true;
|
||||
#endif
|
||||
}
|
||||
|
||||
// If the asm syntax hasn't been overridden on the command line, use whatever
|
||||
|
Loading…
Reference in New Issue
Block a user