summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-12-23 01:42:15 +0000
committerPhilip Reames <listmail@philipreames.com>2015-12-23 01:42:15 +0000
commitee8f0553273549b3ce6b6656a50beab3446300df (patch)
treed2f23bdbb207b6e6e81e61d8d4b406dcf7c7dbe9 /llvm/lib/MC/MCDwarf.cpp
parent7300afa36a60766834d9431a16896768d1d18305 (diff)
downloadbcm5719-llvm-ee8f0553273549b3ce6b6656a50beab3446300df.tar.gz
bcm5719-llvm-ee8f0553273549b3ce6b6656a50beab3446300df.zip
[GC] Make GCStrategy::isGCManagedPointer a type predicate not a value predicate [NFC]
Reasons: 1) The existing form was a form of false generality. None of the implemented GCStrategies use anything other than a type. Its becoming more and more clear we're going to need some type of strong GC pointer in the type system and we shouldn't pretend otherwise at this point. 2) The API was awkward when applied to vectors-of-pointers. The old one could have been made to work, but calling isGCManagedPointer(Ty->getScalarType()) is much cleaner than the Value alternatives. 3) The rewriting implementation effectively assumes the type based predicate as well. We should be consistent. llvm-svn: 256312
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud