Skip to content
Snippets Groups Projects
  1. Dec 14, 2016
  2. Dec 08, 2016
    • David Gross's avatar
      [DebugInfo] Relax test case for long double constants. · 671d92a8
      David Gross authored
      Summary:
      D27549 (partial fix for PR26619) emits a constant value in the debug
      metadata for a floating-point static const that does not exceed 64
      bits in size.  The regression test accompanying that fix assumes that
      a long double exceeds 64 bits in size and hence does not get a
      constant value in the debug metadata.  However, for some targets --
      such as "--target=hexagon-unknown-elf" -- a long double does not
      exceed 64 bits in size, and hence the test fails.
      
      As a temporary fix, modify the regression test to no longer inspect
      the debug metadata for a long double.
      
      Reviewers: cfe-commits, probinson
      
      Differential Revision: https://reviews.llvm.org/D27589
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289103 91177308-0d34-0410-b5e6-96231b3b80d8
      671d92a8
    • David Gross's avatar
      [DebugInfo] Add support for __fp16, float, and double constants. · 4c434043
      David Gross authored
      Summary:
      Partial fix for PR26619.
      
      Prior to this change, a DIGlobalVariable corresponding to a static
      const was marked with an expression corresponding to its constant
      value only if it is of integral type.  With this change, we now do the
      same if it is of __fp16, float, or double type (that is,
      floating-point types that do not exceed 64 bits in size, and hence are
      supported easily by the existing LLVM machinery for creating constant
      expressions in debug info).
      
      Reviewers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D27549
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289094 91177308-0d34-0410-b5e6-96231b3b80d8
      4c434043
Loading