[all-commits] [llvm/llvm-project] 8a8626: [FPEnv] Use typed accessors in FPOptions

Serge Pavlov via All-commits all-commits at lists.llvm.org
Fri Sep 18 00:17:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a86261c511e09629aa48c13cb84172b9be26c0c
      https://github.com/llvm/llvm-project/commit/8a86261c511e09629aa48c13cb84172b9be26c0c
  Author: Serge Pavlov <sepavloff at gmail.com>
  Date:   2020-09-18 (Fri, 18 Sep 2020)

  Changed paths:
    M clang/include/clang/Basic/FPOptions.def
    M clang/include/clang/Basic/LangOptions.h
    M clang/test/AST/ast-dump-fpfeatures.cpp
    M llvm/include/llvm/ADT/FloatingPointMode.h

  Log Message:
  -----------
  [FPEnv] Use typed accessors in FPOptions

Previously methods `FPOptions::get*` returned unsigned value even if the
corresponding property was represented by specific enumeration type. With
this change such methods return actual type of the property. It also
allows printing value of a property as text rather than integer code.

Differential Revision: https://reviews.llvm.org/D87812




More information about the All-commits mailing list