diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-13 23:11:56 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-13 23:11:56 -0700 |
commit | 611ffcf4e4a2ab19063174f6990969f96e9078de (patch) | |
tree | da5c836c83b643f1dd57d1f7d6fccb984dc28caa /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 6882ca9aff076738bbffd68f73892187519554f8 (diff) | |
download | llvm-611ffcf4e4a2ab19063174f6990969f96e9078de.zip llvm-611ffcf4e4a2ab19063174f6990969f96e9078de.tar.gz llvm-611ffcf4e4a2ab19063174f6990969f96e9078de.tar.bz2 |
[llvm] Use value instead of getValue (NFC)
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/ELFObjectFile.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Object/ELFObjectFile.cpp b/llvm/lib/Object/ELFObjectFile.cpp index 38de669..1f342e5 100644 --- a/llvm/lib/Object/ELFObjectFile.cpp +++ b/llvm/lib/Object/ELFObjectFile.cpp @@ -168,11 +168,11 @@ SubtargetFeatures ELFObjectFileBase::getARMFeatures() const { Optional<unsigned> Attr = Attributes.getAttributeValue(ARMBuildAttrs::CPU_arch); if (Attr) - isV7 = Attr.getValue() == ARMBuildAttrs::v7; + isV7 = Attr.value() == ARMBuildAttrs::v7; Attr = Attributes.getAttributeValue(ARMBuildAttrs::CPU_arch_profile); if (Attr) { - switch (Attr.getValue()) { + switch (Attr.value()) { case ARMBuildAttrs::ApplicationProfile: Features.AddFeature("aclass"); break; @@ -191,7 +191,7 @@ SubtargetFeatures ELFObjectFileBase::getARMFeatures() const { Attr = Attributes.getAttributeValue(ARMBuildAttrs::THUMB_ISA_use); if (Attr) { - switch (Attr.getValue()) { + switch (Attr.value()) { default: break; case ARMBuildAttrs::Not_Allowed: @@ -206,7 +206,7 @@ SubtargetFeatures ELFObjectFileBase::getARMFeatures() const { Attr = Attributes.getAttributeValue(ARMBuildAttrs::FP_arch); if (Attr) { - switch (Attr.getValue()) { + switch (Attr.value()) { default: break; case ARMBuildAttrs::Not_Allowed: @@ -230,7 +230,7 @@ SubtargetFeatures ELFObjectFileBase::getARMFeatures() const { Attr = Attributes.getAttributeValue(ARMBuildAttrs::Advanced_SIMD_arch); if (Attr) { - switch (Attr.getValue()) { + switch (Attr.value()) { default: break; case ARMBuildAttrs::Not_Allowed: @@ -249,7 +249,7 @@ SubtargetFeatures ELFObjectFileBase::getARMFeatures() const { Attr = Attributes.getAttributeValue(ARMBuildAttrs::MVE_arch); if (Attr) { - switch (Attr.getValue()) { + switch (Attr.value()) { default: break; case ARMBuildAttrs::Not_Allowed: @@ -268,7 +268,7 @@ SubtargetFeatures ELFObjectFileBase::getARMFeatures() const { Attr = Attributes.getAttributeValue(ARMBuildAttrs::DIV_use); if (Attr) { - switch (Attr.getValue()) { + switch (Attr.value()) { default: break; case ARMBuildAttrs::DisallowDIV: @@ -524,7 +524,7 @@ void ELFObjectFileBase::setARMSubArch(Triple &TheTriple) const { Optional<unsigned> Attr = Attributes.getAttributeValue(ARMBuildAttrs::CPU_arch); if (Attr) { - switch (Attr.getValue()) { + switch (Attr.value()) { case ARMBuildAttrs::v4: Triple += "v4"; break; @@ -556,7 +556,7 @@ void ELFObjectFileBase::setARMSubArch(Triple &TheTriple) const { Optional<unsigned> ArchProfileAttr = Attributes.getAttributeValue(ARMBuildAttrs::CPU_arch_profile); if (ArchProfileAttr && - ArchProfileAttr.getValue() == ARMBuildAttrs::MicroControllerProfile) + ArchProfileAttr.value() == ARMBuildAttrs::MicroControllerProfile) Triple += "v7m"; else Triple += "v7"; |