diff options
author | Reid Kleckner <rnk@google.com> | 2019-11-13 15:17:46 -0800 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-11-13 16:39:34 -0800 |
commit | 1dfede3122eec83b885d788553e3620806d54650 (patch) | |
tree | 62cf4c91e3b52cf169b50da2887adf3115b1eecc /llvm/docs/tutorial/MyFirstLanguageFrontend | |
parent | 4fa44f989e93661e5496a776882f926db0c369fa (diff) | |
download | bcm5719-llvm-1dfede3122eec83b885d788553e3620806d54650.tar.gz bcm5719-llvm-1dfede3122eec83b885d788553e3620806d54650.zip |
Move CodeGenFileType enum to Support/CodeGen.h
Avoids the need to include TargetMachine.h from various places just for
an enum. Various other enums live here, such as the optimization level,
TLS model, etc. Data suggests that this change probably doesn't matter,
but it seems nice to have anyway.
Diffstat (limited to 'llvm/docs/tutorial/MyFirstLanguageFrontend')
-rw-r--r-- | llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst index a794b46c71a..bd730fea693 100644 --- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst +++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl08.rst @@ -157,7 +157,7 @@ pass: .. code-block:: c++ legacy::PassManager pass; - auto FileType = TargetMachine::CGFT_ObjectFile; + auto FileType = CGFT_ObjectFile; if (TargetMachine->addPassesToEmitFile(pass, dest, nullptr, FileType)) { errs() << "TargetMachine can't emit a file of this type"; |