mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
tidy up.
llvm-svn: 118896
This commit is contained in:
parent
dc54b2b285
commit
bcdb696f6c
@ -5030,13 +5030,11 @@ void SelectionDAGBuilder::visitCall(const CallInst &I) {
|
||||
!MMI.callsExternalVAFunctionWithFloatingPointArguments()) {
|
||||
for (unsigned i = 0, e = I.getNumArgOperands(); i != e; ++i) {
|
||||
const Type* T = I.getArgOperand(i)->getType();
|
||||
for (po_iterator<const Type*> i = po_begin(T),
|
||||
e = po_end(T);
|
||||
i != e; ++i) {
|
||||
if (i->isFloatingPointTy()) {
|
||||
MMI.setCallsExternalVAFunctionWithFloatingPointArguments(true);
|
||||
break;
|
||||
}
|
||||
for (po_iterator<const Type*> i = po_begin(T), e = po_end(T);
|
||||
i != e; ++i) {
|
||||
if (!i->isFloatingPointTy()) continue;
|
||||
MMI.setCallsExternalVAFunctionWithFloatingPointArguments(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -580,9 +580,8 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
|
||||
OutStreamer.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
|
||||
}
|
||||
|
||||
if (Subtarget->isTargetWindows()
|
||||
&& !Subtarget->isTargetCygMing()
|
||||
&& MMI->callsExternalVAFunctionWithFloatingPointArguments()) {
|
||||
if (Subtarget->isTargetWindows() && !Subtarget->isTargetCygMing() &&
|
||||
MMI->callsExternalVAFunctionWithFloatingPointArguments()) {
|
||||
StringRef SymbolName = Subtarget->is64Bit() ? "_fltused" : "__fltused";
|
||||
MCSymbol *S = MMI->getContext().GetOrCreateSymbol(SymbolName);
|
||||
OutStreamer.EmitSymbolAttribute(S, MCSA_Global);
|
||||
|
Loading…
Reference in New Issue
Block a user