mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Migrating LLVM API usage on main
This patch migrates the compiler off of the deprecated LLVM APIs where I
can.
- APInt::getAllOnesValue -> APInt::getAllOnes
- APInt::getNullValue -> APInt::getZero
- APInt::isNullValue -> APInt::isZero
- APInt::getMinSignedBits -> APInt::getSignificantBits
- clang::Module::submodule_{begin,end} -> clang::Module::submodules
This commit is contained in:
@@ -31,10 +31,10 @@ struct WidthPreservingAPIntDenseMapInfo {
|
||||
// for the value, then use a parser that always produces values with
|
||||
// minimal bit-widths so that we don't get a conflict.
|
||||
static inline APInt getEmptyKey() {
|
||||
return APInt::getAllOnesValue(/*bitwidth*/2);
|
||||
return APInt::getAllOnes(/*bitwidth*/2);
|
||||
}
|
||||
static inline APInt getTombstoneKey() {
|
||||
return APInt::getAllOnesValue(/*bitwidth*/3);
|
||||
return APInt::getAllOnes(/*bitwidth*/3);
|
||||
}
|
||||
|
||||
static unsigned getHashValue(const APInt &Key) {
|
||||
|
||||
Reference in New Issue
Block a user