Skip to content

Commit

Permalink
If isKnownWindowsMSVCEnvironment then getOS == Triple::Win32 and
Browse files Browse the repository at this point in the history
Environment == Triple::MSVC so it will never be MinGW or Cygwin.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205349 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
yrnkrn committed Apr 1, 2014
1 parent e30aa95 commit f2dc47c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/Target/X86/X86AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,8 +623,7 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
OutStreamer.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
}

if (Subtarget->isTargetKnownWindowsMSVC() && !Subtarget->isTargetCygMing() &&
MMI->usesVAFloatArgument()) {
if (Subtarget->isTargetKnownWindowsMSVC() && MMI->usesVAFloatArgument()) {
StringRef SymbolName = Subtarget->is64Bit() ? "_fltused" : "__fltused";
MCSymbol *S = MMI->getContext().GetOrCreateSymbol(SymbolName);
OutStreamer.EmitSymbolAttribute(S, MCSA_Global);
Expand Down
2 changes: 1 addition & 1 deletion lib/Target/X86/X86ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void X86TargetLowering::resetOperationActions() {
addBypassSlowDiv(64, 16);
}

if (Subtarget->isTargetKnownWindowsMSVC() && !Subtarget->isTargetCygMing()) {
if (Subtarget->isTargetKnownWindowsMSVC()) {
// Setup Windows compiler runtime calls.
setLibcallName(RTLIB::SDIV_I64, "_alldiv");
setLibcallName(RTLIB::UDIV_I64, "_aulldiv");
Expand Down

0 comments on commit f2dc47c

Please sign in to comment.