From 0a1aa6cda2758b0926a95f87d39ffefb1cb90200 Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Thu, 14 Sep 2023 14:10:14 -0700 Subject: [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:: --- llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend') diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst index 6c7034e..33ee7d2 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst @@ -155,7 +155,7 @@ pass: .. code-block:: c++ legacy::PassManager pass; - auto FileType = CGFT_ObjectFile; + auto FileType = CodeGenFileType::ObjectFile; if (TargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) { errs() << "TargetMachine can't emit a file of this type"; -- cgit v1.1