Skip to content

Commit 9b8483a

Browse files
committed
Add comment
1 parent db429d7 commit 9b8483a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

llvm/lib/Target/X86/X86AsmPrinter.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,12 @@ static void emitNonLazyStubs(MachineModuleInfo *MMI, MCStreamer &OutStreamer) {
977977
}
978978

979979
/// True if this module is being built for windows/msvc, and uses floating
980-
/// point. This is used to emit an undefined reference to _fltused.
980+
/// point. This is used to emit an undefined reference to _fltused. This is
981+
/// needed in Windows kernel or driver contexts to find and prevent code from
982+
/// modifying non-GPR registers.
983+
///
984+
/// TODO: It would be better if this was computed from MIR by looking for
985+
/// selected floating-point instructions.
981986
static bool usesMSVCFloatingPoint(const Triple &TT, const Module &M) {
982987
// Only needed for MSVC
983988
if (!TT.isWindowsMSVCEnvironment())

0 commit comments

Comments
 (0)