diff options
| author | Arthur Eubanks <aeubanks@google.com> | 2023-09-14 14:10:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-14 14:10:14 -0700 |
| commit | 0a1aa6cda2758b0926a95f87d39ffefb1cb90200 (patch) | |
| tree | 766dc35b70235864f287a9f0a2cef45d487203ad /lldb/source/Expression/IRExecutionUnit.cpp | |
| parent | ae84b160d2fe61a7211817262ce717a17d27c0ae (diff) | |
| download | llvm-0a1aa6cda2758b0926a95f87d39ffefb1cb90200.tar.gz llvm-0a1aa6cda2758b0926a95f87d39ffefb1cb90200.tar.bz2 llvm-0a1aa6cda2758b0926a95f87d39ffefb1cb90200.zip | |
[NFC][CodeGen] Change CodeGenOpt::Level/CodeGenFileType into enum classes (#66295)
This will make it easy for callers to see issues with and fix up calls
to createTargetMachine after a future change to the params of
TargetMachine.
This matches other nearby enums.
For downstream users, this should be a fairly straightforward
replacement,
e.g. s/CodeGenOpt::Aggressive/CodeGenOptLevel::Aggressive
or s/CGFT_/CodeGenFileType::
Diffstat (limited to 'lldb/source/Expression/IRExecutionUnit.cpp')
| -rw-r--r-- | lldb/source/Expression/IRExecutionUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp index ac9cea7e731f..562bf3cdd2ed 100644 --- a/lldb/source/Expression/IRExecutionUnit.cpp +++ b/lldb/source/Expression/IRExecutionUnit.cpp @@ -285,7 +285,7 @@ void IRExecutionUnit::GetRunnableInfo(Status &error, lldb::addr_t &func_addr, .setRelocationModel(triple.isOSBinFormatMachO() ? llvm::Reloc::PIC_ : llvm::Reloc::Static) .setMCJITMemoryManager(std::make_unique<MemoryManager>(*this)) - .setOptLevel(llvm::CodeGenOpt::Less); + .setOptLevel(llvm::CodeGenOptLevel::Less); llvm::StringRef mArch; llvm::StringRef mCPU; |
