summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-06-18 18:15:41 +0000
committerCraig Topper <craig.topper@intel.com>2017-06-18 18:15:41 +0000
commitc85be52fd89a3e90cbe2e497c7e805e6e2303bc6 (patch)
tree5955d5005bcc06160441ad3ba3d07a8ddba23609 /llvm/include
parentd96177cf72c5a17a0192df84bd13db16a5d7c451 (diff)
downloadbcm5719-llvm-c85be52fd89a3e90cbe2e497c7e805e6e2303bc6.tar.gz
bcm5719-llvm-c85be52fd89a3e90cbe2e497c7e805e6e2303bc6.zip
[APFloat] Move the integerPartWidth constant into APFloatBase. Remove integerPart typedef at file scope and just use the one in APFloatBase everywhere. NFC
llvm-svn: 305652
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ADT/APFloat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ADT/APFloat.h b/llvm/include/llvm/ADT/APFloat.h
index bef6efde1f0..9c5e392c480 100644
--- a/llvm/include/llvm/ADT/APFloat.h
+++ b/llvm/include/llvm/ADT/APFloat.h
@@ -140,8 +140,8 @@ enum lostFraction { // Example of truncated bits:
// implementation classes. This struct should not define any non-static data
// members.
struct APFloatBase {
- // TODO remove this and use APInt typedef directly.
typedef APInt::WordType integerPart;
+ static const unsigned integerPartWidth = APInt::APINT_BITS_PER_WORD;
/// A signed type to represent a floating point numbers unbiased exponent.
typedef signed short ExponentType;
OpenPOWER on IntegriCloud