summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-09-04 21:21:12 +0000
committerDavide Italiano <davide@freebsd.org>2017-09-04 21:21:12 +0000
commitcd28bce8dfac7d5be9e6913ee207dfbcfaffb9cd (patch)
tree381f3ec6ca6ff17e5441afc6bd66aae4d7e6462f /llvm/test
parent9e68b734d6d0a98c672aebbe64956476cc140008 (diff)
downloadbcm5719-llvm-cd28bce8dfac7d5be9e6913ee207dfbcfaffb9cd.tar.gz
bcm5719-llvm-cd28bce8dfac7d5be9e6913ee207dfbcfaffb9cd.zip
[ABI] Rewrite RegisterIsCalleeSaved.
The goal of this patch is twofold: First, it removes a wrong comment (at least, not correctly describing what the function does). Then, it rewrites the function to use a StringSwitch where the registers are enumerated explicitly instead of being computed programmatically. Other than being much shorter, it's much easier to read (and given the ABI won't change anytime soon, I don't think there's need to generalize). While here, I added an assert that the register name is always empty, as the previous implementation of the function assumed so. Differential Revision: https://reviews.llvm.org/D37420 llvm-svn: 312501
Diffstat (limited to 'llvm/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud