[llvm-commits] [llvm] r78219 - in /llvm/trunk/lib/Target: ARM/ARMSubtarget.cpp PowerPC/PPCSubtarget.cpp X86/X86Subtarget.cpp
Anton Korobeynikov
anton at korobeynikov.info
Mon Aug 10 23:58:21 PDT 2009
Hello, Daniel
> URL: http://llvm.org/viewvc/llvm-project?rev=78219&view=rev
> Log:
> Remove some dead code.
>
> Modified:
> llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp
> llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
> llvm/trunk/lib/Target/X86/X86Subtarget.cpp
>
> Modified: llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp?rev=78219&r1=78218&r2=78219&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp (original)
> +++ llvm/trunk/lib/Target/ARM/ARMSubtarget.cpp Wed Aug 5 13:12:37 2009
> @@ -81,10 +81,6 @@
> 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)
>
> Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp?rev=78219&r1=78218&r2=78219&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp (original)
> +++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.cpp Wed Aug 5 13:12:37 2009
> @@ -103,15 +103,6 @@
> 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.
>
> Modified: llvm/trunk/lib/Target/X86/X86Subtarget.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Subtarget.cpp?rev=78219&r1=78218&r2=78219&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/X86/X86Subtarget.cpp (original)
> +++ llvm/trunk/lib/Target/X86/X86Subtarget.cpp Wed Aug 5 13:12:37 2009
> @@ -458,31 +458,10 @@
> 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
> }
This code is not dead. It seems to be used for JIT
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-commits
mailing list