Introduce needsCleanup() for APFloat and APInt.
authorManuel Klimek <klimek@google.com>
Mon, 3 Jun 2013 13:03:05 +0000 (13:03 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 3 Jun 2013 13:03:05 +0000 (13:03 +0000)
commitabff3aa8217049cffe6da77c91e510c66b8c2313
treebb733eb4d9b3fd6799811554fad43be8add63741
parente7cbb792c95cb27a9704551579da19ebcaa06cdb
Introduce needsCleanup() for APFloat and APInt.

This is needed in clang so one can check if the object needs the
destructor called after its memory was freed. This is useful when
creating many APInt/APFloat objects with placement new, where the
overhead of tracking the pointers for cleanup is significant.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183100 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APFloat.h
include/llvm/ADT/APInt.h
lib/Support/APFloat.cpp