DebugInfo: Simplify/correct test for correct constant emission when dealing with...
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 11 May 2014 17:25:50 +0000 (17:25 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 11 May 2014 17:25:50 +0000 (17:25 +0000)
commitdb692e7d5539bcdac5b892904b06caef4591c096
tree85b666f8a7ac46267a70ee099021ab4a49c7c482
parent42e3b31d698dfe492c1c33adbbc6b98be9918fd2
DebugInfo: Simplify/correct test for correct constant emission when dealing with derived types.

This test was using the inliner and other optimizations to test a case
that's actually a bug anyway. Bug and possible fix/discussion described
here ( http://reviews.llvm.org/D3714 ).

But the functionality that was implemented along with this test is still
desired, so simplify the test to verify a more obvious/less wrong case
that the functionality addressed: looking through const sugar to the
underlying type when emitting a constant (so the constant is emitted as
signed/unsigned as appropriate depending on the signedness of the
underlying type).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208504 91177308-0d34-0410-b5e6-96231b3b80d8
test/DebugInfo/X86/dbg-large-unsigned-const.ll [deleted file]
test/DebugInfo/sugared-constants.ll [new file with mode: 0644]