diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index c0890f469b..4376478ec2 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -157,6 +157,11 @@ 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; + public: static char ID; // Pass identification, replacement for typeid @@ -211,7 +216,15 @@ public: bool callsUnwindInit() const { return CallsUnwindInit; } void setCallsUnwindInit(bool b) { CallsUnwindInit = b; } - + + bool callsExternalFunctionWithFloatingPointArguments() const { + return CallsExternalFunctionWithFloatingPointArguments; + } + + void setCallsExternalFunctionWithFloatingPointArguments(bool b) { + CallsExternalFunctionWithFloatingPointArguments = b; + } + /// getFrameMoves - Returns a reference to a list of moves done in the current /// function's prologue. Used to construct frame maps for debug and exception /// handling comsumers. |