summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/TrailingObjectsTest.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-12-18 22:40:25 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-12-18 22:40:25 +0000
commitdb0ac5572fcf7e6d529ff70f4871707f66c4a623 (patch)
tree36b1086ba3976b218924c6e3732c81fdc309ad86 /llvm/unittests/Support/TrailingObjectsTest.cpp
parent9a217b6787f4b4e1f5dd2279d35942a4569c6972 (diff)
downloadbcm5719-llvm-db0ac5572fcf7e6d529ff70f4871707f66c4a623.tar.gz
bcm5719-llvm-db0ac5572fcf7e6d529ff70f4871707f66c4a623.zip
Split RequireCompleteType into a function that actually requires that the type
is complete (with an error produced if not) and a function that merely queries whether the type is complete. Either way we'll trigger instantiation if necessary, but only the former will diagnose and recover from missing module imports. The intent of this change is to prevent a class of bugs where code would call RequireCompleteType(..., 0) and then ignore the result. With modules, we must check the return value and use it to determine whether the definition of the type is visible. This also fixes a debug info quality issue: calls to isCompleteType do not trigger the emission of debug information for a type in limited-debug-info mode. This allows us to avoid emitting debug information for type definitions in more cases where we believe it is safe to do so. llvm-svn: 256049
Diffstat (limited to 'llvm/unittests/Support/TrailingObjectsTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud