diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-18 06:05:18 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-10-18 06:05:18 +0000 |
commit | 2b9e3e396a6f0b1ebd247cb204f20a319f6ae7f4 (patch) | |
tree | c93d61965532f68d891027c703eae93cb71366ed /llvm/lib/DebugInfo/DWARFFormValue.cpp | |
parent | 3dc4f44e71bc9d5650b2cd134ca4733438acfbfb (diff) | |
download | bcm5719-llvm-2b9e3e396a6f0b1ebd247cb204f20a319f6ae7f4.tar.gz bcm5719-llvm-2b9e3e396a6f0b1ebd247cb204f20a319f6ae7f4.zip |
Basic ODR checking for C++ modules:
If we have multiple definitions of the same entity from different modules, we
nominate the first definition which we see as being the canonical definition.
If we load a declaration from a different definition and we can't find a
corresponding declaration in the canonical definition, issue a diagnostic.
This is insufficient to prevent things from going horribly wrong in all cases
-- we might be in the middle of emitting IR for a function when we trigger some
deserialization and discover that it refers to an incoherent piece of the AST,
by which point it's probably too late to bail out -- but we'll at least produce
a diagnostic.
llvm-svn: 192950
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFFormValue.cpp')
0 files changed, 0 insertions, 0 deletions