summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectWatchpoint.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2016-10-05 21:08:02 +0000
committerMartin Storsjo <martin@martin.st>2016-10-05 21:08:02 +0000
commitf997759aef281363c6209b6bb3ddc737188b8931 (patch)
treee73dacd532c7f14aa04701bc22280ff897bda382 /lldb/source/Commands/CommandObjectWatchpoint.cpp
parenta03380808cf5ab1e7179700ff904324e6c097a2c (diff)
downloadbcm5719-llvm-f997759aef281363c6209b6bb3ddc737188b8931.tar.gz
bcm5719-llvm-f997759aef281363c6209b6bb3ddc737188b8931.zip
[ARM] Use __rt_div functions for divrem on Windows
This avoids falling back to calling out to the GCC rem functions (__moddi3, __umoddi3) when targeting Windows. The __rt_div functions have flipped the two arguments compared to the __aeabi_divmod functions. To match MSVC, we emit a check for division by zero before actually calling the library function (even if the library function itself also might do the same check). Not all calls to __rt_div functions for division are currently merged with calls to the same function with the same parameters for the remainder. This is more wasteful than a div + mls as before, but avoids calls to __moddi3. Differential Revision: https://reviews.llvm.org/D24076 llvm-svn: 283383
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpoint.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud