diff options
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
| -rw-r--r-- | lib/CodeGen/MachineModuleInfo.cpp | 30 | 
1 files changed, 5 insertions, 25 deletions
| diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 6ef8de88f8b1..aadcd7319799 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp @@ -1,9 +1,8 @@  //===-- llvm/CodeGen/MachineModuleInfo.cpp ----------------------*- C++ -*-===//  // -//                     The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception  //  //===----------------------------------------------------------------------===// @@ -206,11 +205,11 @@ MachineModuleInfo::~MachineModuleInfo() = default;  bool MachineModuleInfo::doInitialization(Module &M) {    ObjFileMMI = nullptr;    CurCallSite = 0; -  UsesVAFloatArgument = UsesMorestackAddr = false; +  UsesMSVCFloatingPoint = UsesMorestackAddr = false;    HasSplitStack = HasNosplitStack = false;    AddrLabelSymbols = nullptr;    TheModule = &M; -  DbgInfoAvailable = !empty(M.debug_compile_units()); +  DbgInfoAvailable = !llvm::empty(M.debug_compile_units());    return false;  } @@ -328,22 +327,3 @@ char FreeMachineFunction::ID;  FunctionPass *llvm::createFreeMachineFunctionPass() {    return new FreeMachineFunction();  } - -//===- MMI building helpers -----------------------------------------------===// - -void llvm::computeUsesVAFloatArgument(const CallInst &I, -                                      MachineModuleInfo &MMI) { -  FunctionType *FT = -      cast<FunctionType>(I.getCalledValue()->getType()->getContainedType(0)); -  if (FT->isVarArg() && !MMI.usesVAFloatArgument()) { -    for (unsigned i = 0, e = I.getNumArgOperands(); i != e; ++i) { -      Type *T = I.getArgOperand(i)->getType(); -      for (auto i : post_order(T)) { -        if (i->isFloatingPointTy()) { -          MMI.setUsesVAFloatArgument(true); -          return; -        } -      } -    } -  } -} | 
