Fix up various references to renamed/moved enums

A bunch of enums were moved to enum classes and slightly renamed. Fix up
their references.
This commit is contained in:
Ben Barham
2024-03-14 19:23:25 -07:00
parent cacfd3e3ae
commit 0f52071c22
6 changed files with 30 additions and 28 deletions

View File

@@ -114,11 +114,11 @@ static llvm::cl::opt<std::string> PassPipeline(
// Helper Methods
//===----------------------------------------------------------------------===//
static llvm::CodeGenOpt::Level GetCodeGenOptLevel(const SwiftLLVMOptOptions &options) {
static llvm::CodeGenOptLevel GetCodeGenOptLevel(const SwiftLLVMOptOptions &options) {
// TODO: Is this the right thing to do here?
if (options.Optimized)
return llvm::CodeGenOpt::Default;
return llvm::CodeGenOpt::None;
return llvm::CodeGenOptLevel::Default;
return llvm::CodeGenOptLevel::None;
}
// Returns the TargetMachine instance or zero if no triple is provided.