Skip to content
Commit 87b4f076 authored by Brian Gaeke's avatar Brian Gaeke
Browse files

lib/CWriter/Writer.cpp: Copy AsmWriter's ConstantFP checking code here

into a new function FPCSafeToPrint(), and use it in printConstant()
and printFunction() to decide whether we should output ConstantFPs as
floating-point constants or as references to stack-allocated variables.

lib/VMCore/AsmWriter.cpp: Fix an apparent typo in the code mentioned above.

llvm-svn: 6762
parent a7cf81bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment