summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens-with-default-args.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-11-08 08:09:22 +0000
committerJason Molenda <jmolenda@apple.com>2014-11-08 08:09:22 +0000
commitbd07fd57f6ae010caacf1d82d923caa07b18ad89 (patch)
tree0f0d6b1a6ff4d160c199ac46627bcbed03053fb1 /clang/test/Index/annotate-tokens-with-default-args.cpp
parent3e3a705062fe343dc397c0bf623aa383f14ce07c (diff)
downloadbcm5719-llvm-bd07fd57f6ae010caacf1d82d923caa07b18ad89.tar.gz
bcm5719-llvm-bd07fd57f6ae010caacf1d82d923caa07b18ad89.zip
Add a RegisterNumber class to RegisterContextLLDB.h and start using
it in RegisterContext.cpp. There's a lot of bookkeeping code in RegisterContextLLDB where it has to convert between different register numbering schemes and it makes some methods like SavedLocationForRegister very hard to read or maintain. Abstract all of the details about different register numbering systems for a given register into this new class to make it easier to understand what the method is doing. Also add register name printing to all of the logging -- that's easy to get now that I've got an object to represent the register numbers. There were some gnarly corner cases of this method that I believe I've translated correctly - initial testing looks good but it's possible I missed a corner case, especially with architectures which uses a link-register aka return address register like arm32/arm64. Basic behavior is correct but there are a lot of corner casese that are handled in this method ... llvm-svn: 221577
Diffstat (limited to 'clang/test/Index/annotate-tokens-with-default-args.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud