summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ValueObject.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-02 16:26:37 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-02 16:26:37 +0000
commit5204bded1d003f23c788ebce266eba900a930782 (patch)
treefeca87193a724008146ea522e2e1f629399da640 /lldb/source/Core/ValueObject.cpp
parent11a044634acd5b7043caa4356f00a648a3c47f5e (diff)
downloadbcm5719-llvm-5204bded1d003f23c788ebce266eba900a930782.tar.gz
bcm5719-llvm-5204bded1d003f23c788ebce266eba900a930782.zip
Implement a proper local -> global type ID remapping scheme in the AST
reader. This scheme permits an AST file to be loaded with its type IDs shifted anywhere in the type ID space. At present, the type indices are still allocated in the same boring way they always have been, just by adding up the number of types in each PCH file within the chain. However, I've done testing with this patch by randomly sliding the base indices at load time, to ensure that remapping is occurring as expected. I may eventually formalize this in some testing flag, but loading multiple (non-chained) AST files at once will eventually exercise the same code. There is one known problem with this patch, which involves name lookup of operator names (e.g., "x.operator int*()") in cases where multiple PCH files in the chain. The hash function itself depends on having a stable type ID, which doesn't happen with chained PCH and *certainly* doesn't happen when sliding type IDs around. We'll need another approach. I'll tackle that next. llvm-svn: 136693
Diffstat (limited to 'lldb/source/Core/ValueObject.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud