]> granicus.if.org Git - clang/blobdiff - Sema/SemaExpr.cpp
simplify all the type info accessors in TargeTInfo to return scalars,
[clang] / Sema / SemaExpr.cpp
index f1b6ea222ce2a7c0dd58626b9f3a710ade076e47..d756345c1a8617d9996d62b9e7390310e411f3b1 100644 (file)
@@ -190,17 +190,16 @@ Action::ExprResult Sema::ActOnNumericConstant(const Token &Tok) {
   if (Literal.isFloatingLiteral()) {
     QualType Ty;
     const llvm::fltSemantics *Format;
-    uint64_t Size; unsigned Align;
 
     if (Literal.isFloat) {
       Ty = Context.FloatTy;
-      Context.Target.getFloatInfo(Size, Align, Format);
-    } else if (Literal.isLong) {
-      Ty = Context.LongDoubleTy;
-      Context.Target.getLongDoubleInfo(Size, Align, Format);
-    } else {
+      Format = Context.Target.getFloatFormat();
+    } else if (!Literal.isLong) {
       Ty = Context.DoubleTy;
-      Context.Target.getDoubleInfo(Size, Align, Format);
+      Format = Context.Target.getDoubleFormat();
+    } else {
+      Ty = Context.LongDoubleTy;
+      Format = Context.Target.getLongDoubleFormat();
     }
     
     // isExact will be set by GetFloatValue().