summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-09-27 14:41:29 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-09-27 14:41:29 +0000
commit7b4133ac8180ee4713616f88b9c4df0953397635 (patch)
treed0ec3356ffb35d2e3b6436552a3196bfdde7fb86 /lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp
parent9143d67abaf08028b52e65387a1d96076a58004a (diff)
downloadbcm5719-llvm-7b4133ac8180ee4713616f88b9c4df0953397635.tar.gz
bcm5719-llvm-7b4133ac8180ee4713616f88b9c4df0953397635.zip
Fix llvm::huge_valf multiple initializations with Visual C++.
llvm::huge_valf is defined in a header file, so it is initialized multiple times in every compiled unit upon program startup. With non-VC compilers huge_valf is set to a HUGE_VALF which the compiler can probably optimize out. With VC numeric_limits<float>::infinity() does not return a number but a runtime structure member which therotically may change between calls so the compiler does not optimize out the initialization and it happens many times. It can be easily seen by placing a breakpoint on the initialization line. This patch moves llvm::huge_valf initialization to a source file instead of the header. llvm-svn: 218567
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/ProcessMonitor.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud