diff options
author | Dale Johannesen <dalej@apple.com> | 2008-10-09 18:53:47 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-10-09 18:53:47 +0000 |
commit | 7111b02c734c992b8c97d9918118768026dad79e (patch) | |
tree | c6a444a3819e1ae62e870dd0040a8cd4f699d778 /lib/Support | |
parent | a6bf66d0d6c1ed9bb657f72bc89c432c4ee96f63 (diff) | |
download | external_llvm-7111b02c734c992b8c97d9918118768026dad79e.zip external_llvm-7111b02c734c992b8c97d9918118768026dad79e.tar.gz external_llvm-7111b02c734c992b8c97d9918118768026dad79e.tar.bz2 |
Rename APFloat::convertToAPInt to bitcastToAPInt to
make it clearer what the function does. No functional
change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/APFloat.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index df309d4..a8691f4 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -695,7 +695,7 @@ APFloat::~APFloat() // Profile - This method 'profiles' an APFloat for use with FoldingSet. void APFloat::Profile(FoldingSetNodeID& ID) const { - ID.Add(convertToAPInt()); + ID.Add(bitcastToAPInt()); } unsigned int @@ -2617,7 +2617,7 @@ APFloat::convertFloatAPFloatToAPInt() const // and treating the result as a normal integer is unlikely to be useful. APInt -APFloat::convertToAPInt() const +APFloat::bitcastToAPInt() const { if (semantics == (const llvm::fltSemantics*)&IEEEsingle) return convertFloatAPFloatToAPInt(); @@ -2637,7 +2637,7 @@ float APFloat::convertToFloat() const { assert(semantics == (const llvm::fltSemantics*)&IEEEsingle); - APInt api = convertToAPInt(); + APInt api = bitcastToAPInt(); return api.bitsToFloat(); } @@ -2645,7 +2645,7 @@ double APFloat::convertToDouble() const { assert(semantics == (const llvm::fltSemantics*)&IEEEdouble); - APInt api = convertToAPInt(); + APInt api = bitcastToAPInt(); return api.bitsToDouble(); } |