diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-08 08:52:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-08 08:52:55 +0000 |
commit | 9e9b6dc3fd413f5341fab54b681420eeb21cd169 (patch) | |
tree | bb692e630a57cfa84a91fca635cad0150dfee1be /Basic | |
parent | f72a44330b9d9a4b2d93e9b91cfb8ab7bd4a0643 (diff) |
simplify all the type info accessors in TargeTInfo to return scalars,
which is simpler to use and provide.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48051 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic')
-rw-r--r-- | Basic/TargetInfo.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/Basic/TargetInfo.cpp b/Basic/TargetInfo.cpp index 8def507c0a..5364affe58 100644 --- a/Basic/TargetInfo.cpp +++ b/Basic/TargetInfo.cpp @@ -24,24 +24,16 @@ TargetInfo::~TargetInfo() {} //===----------------------------------------------------------------------===// // FIXME: These are temporary hacks. -void TargetInfo::getFloatInfo(uint64_t &Size, unsigned &Align, - const llvm::fltSemantics *&Format) const { - Align = 32; // FIXME: implement correctly. - Size = 32; - Format = &llvm::APFloat::IEEEsingle; +const llvm::fltSemantics *TargetInfo::getFloatFormat() const { + return &llvm::APFloat::IEEEsingle; } -void TargetInfo::getDoubleInfo(uint64_t &Size, unsigned &Align, - const llvm::fltSemantics *&Format) const { - Size = 64; // FIXME: implement correctly. - Align = 32; - Format = &llvm::APFloat::IEEEdouble; +const llvm::fltSemantics *TargetInfo::getDoubleFormat() const { + return &llvm::APFloat::IEEEdouble; } -void TargetInfo::getLongDoubleInfo(uint64_t &Size, unsigned &Align, - const llvm::fltSemantics *&Format) const { - Size = Align = 64; // FIXME: implement correctly. - Format = &llvm::APFloat::IEEEdouble; +const llvm::fltSemantics *TargetInfo::getLongDoubleFormat() const { //Size = 80; Align = 32; // FIXME: implement correctly. //Format = &llvm::APFloat::x87DoubleExtended; + return &llvm::APFloat::IEEEdouble; } |