diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-07-26 11:29:45 -0600 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-08-04 06:54:12 -0600 |
| commit | 442a4744e38136b79f818833d784145eb952b26a (patch) | |
| tree | 6e84aa5bae38f7a87e528dc8197a237c91e372c5 /src/librustc_codegen_llvm | |
| parent | b3267dcb3171f3a6b20eaceea254ab696609b922 (diff) | |
| download | rust-442a4744e38136b79f818833d784145eb952b26a.tar.gz rust-442a4744e38136b79f818833d784145eb952b26a.zip | |
Normalize EntryFnType variants to standard style
Diffstat (limited to 'src/librustc_codegen_llvm')
| -rw-r--r-- | src/librustc_codegen_llvm/base.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/base.rs b/src/librustc_codegen_llvm/base.rs index 8fb3670e5ed..d98a8981da7 100644 --- a/src/librustc_codegen_llvm/base.rs +++ b/src/librustc_codegen_llvm/base.rs @@ -46,7 +46,7 @@ use rustc::middle::cstore::{self, LinkMeta, LinkagePreference}; use rustc::middle::exported_symbols; use rustc::util::common::{time, print_time_passes_entry}; use rustc::util::profiling::ProfileCategory; -use rustc::session::config::{self, NoDebugInfo}; +use rustc::session::config::{self, NoDebugInfo, EntryFnType}; use rustc::session::Session; use rustc_incremental; use allocator; @@ -560,8 +560,8 @@ fn maybe_create_entry_wrapper(cx: &CodegenCx) { let et = cx.sess().entry_fn.get().map(|e| e.2); match et { - Some(config::EntryMain) => create_entry_fn(cx, span, main_llfn, main_def_id, true), - Some(config::EntryStart) => create_entry_fn(cx, span, main_llfn, main_def_id, false), + Some(EntryFnType::Main) => create_entry_fn(cx, span, main_llfn, main_def_id, true), + Some(EntryFnType::Start) => create_entry_fn(cx, span, main_llfn, main_def_id, false), None => {} // Do nothing. } |
