r222697 - Remove unnecessary environment switch
Reid Kleckner
reid at kleckner.net
Mon Nov 24 14:05:43 PST 2014
Author: rnk
Date: Mon Nov 24 16:05:42 2014
New Revision: 222697
URL: http://llvm.org/viewvc/llvm-project?rev=222697&view=rev
Log:
Remove unnecessary environment switch
All supported environments on x86 Windows return structs in EAX:EDX.
This removes code added in r204978 that had to get updated in r222680.
We should now have the same behavior we had before r204978.
Modified:
cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=222697&r1=222696&r2=222697&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Mon Nov 24 16:05:42 2014
@@ -1301,18 +1301,8 @@ bool X86_32TargetCodeGenInfo::isStructRe
case llvm::Triple::FreeBSD:
case llvm::Triple::OpenBSD:
case llvm::Triple::Bitrig:
- return true;
case llvm::Triple::Win32:
- switch (Triple.getEnvironment()) {
- case llvm::Triple::UnknownEnvironment:
- case llvm::Triple::Cygnus:
- case llvm::Triple::GNU:
- case llvm::Triple::Itanium:
- case llvm::Triple::MSVC:
- return true;
- default:
- return false;
- }
+ return true;
default:
return false;
}
More information about the cfe-commits
mailing list