mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
CodeGen-Windows: Only emit _fltused if a VarArg function is called with floating point args.
This should be the minimum set of functions that could possibly need it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -157,10 +157,9 @@ class MachineModuleInfo : public ImmutablePass {
|
||||
/// in this module.
|
||||
bool DbgInfoAvailable;
|
||||
|
||||
/// True if this module calls an external function with floating point
|
||||
/// arguments. This is used to emit an undefined reference to fltused on
|
||||
/// Windows targets.
|
||||
bool CallsExternalFunctionWithFloatingPointArguments;
|
||||
/// True if this module calls VarArg function with floating point arguments.
|
||||
/// This is used to emit an undefined reference to fltused on Windows targets.
|
||||
bool CallsExternalVAFunctionWithFloatingPointArguments;
|
||||
|
||||
public:
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
@ -217,12 +216,12 @@ public:
|
||||
bool callsUnwindInit() const { return CallsUnwindInit; }
|
||||
void setCallsUnwindInit(bool b) { CallsUnwindInit = b; }
|
||||
|
||||
bool callsExternalFunctionWithFloatingPointArguments() const {
|
||||
return CallsExternalFunctionWithFloatingPointArguments;
|
||||
bool callsExternalVAFunctionWithFloatingPointArguments() const {
|
||||
return CallsExternalVAFunctionWithFloatingPointArguments;
|
||||
}
|
||||
|
||||
void setCallsExternalFunctionWithFloatingPointArguments(bool b) {
|
||||
CallsExternalFunctionWithFloatingPointArguments = b;
|
||||
void setCallsExternalVAFunctionWithFloatingPointArguments(bool b) {
|
||||
CallsExternalVAFunctionWithFloatingPointArguments = b;
|
||||
}
|
||||
|
||||
/// getFrameMoves - Returns a reference to a list of moves done in the current
|
||||
|
Reference in New Issue
Block a user