diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-03 14:10:23 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-03 14:10:23 +0000 |
| commit | 145449b1e420787bb99721a429341fa6be3adfb6 (patch) | |
| tree | 1d56ae694a6de602e348dd80165cf881a36600ed /llvm/lib/Target/ARC/ARCTargetMachine.cpp | |
| parent | ecbca9f5fb7d7613d2b94982c4825eb0d33d6842 (diff) | |
Diffstat (limited to 'llvm/lib/Target/ARC/ARCTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/Target/ARC/ARCTargetMachine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARC/ARCTargetMachine.cpp b/llvm/lib/Target/ARC/ARCTargetMachine.cpp index 52f74b729ff7..21757927d873 100644 --- a/llvm/lib/Target/ARC/ARCTargetMachine.cpp +++ b/llvm/lib/Target/ARC/ARCTargetMachine.cpp @@ -21,7 +21,7 @@ using namespace llvm; static Reloc::Model getRelocModel(Optional<Reloc::Model> RM) { - return RM.getValueOr(Reloc::Static); + return RM.value_or(Reloc::Static); } /// ARCTargetMachine ctor - Create an ILP32 architecture model @@ -84,6 +84,6 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeARCTarget() { } TargetTransformInfo -ARCTargetMachine::getTargetTransformInfo(const Function &F) { +ARCTargetMachine::getTargetTransformInfo(const Function &F) const { return TargetTransformInfo(ARCTTIImpl(this, F)); } |
