File tree Expand file tree Collapse file tree 5 files changed +19
-18
lines changed
Expand file tree Collapse file tree 5 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ using namespace lld::coff;
4343
4444static std::unique_ptr<lto::LTO> createLTO () {
4545 lto::Config C;
46- C.Options = InitTargetOptionsFromCodeGenFlags ();
46+ C.Options = initTargetOptionsFromCodeGenFlags ();
4747
4848 // Always emit a section per function/datum with LTO. LLVM LTO should get most
4949 // of the benefit of linker GC, but there are still opportunities for ICF.
@@ -60,8 +60,8 @@ static std::unique_ptr<lto::LTO> createLTO() {
6060 C.DisableVerify = true ;
6161 C.DiagHandler = diagnosticHandler;
6262 C.OptLevel = Config->LTOO ;
63- C.CPU = GetCPUStr ();
64- C.MAttrs = GetMAttrs ();
63+ C.CPU = getCPUStr ();
64+ C.MAttrs = getMAttrs ();
6565 C.CGOptLevel = args::getCGOptLevel (Config->LTOO );
6666
6767 if (Config->SaveTemps )
Original file line number Diff line number Diff line change 1919#include " llvm/Target/TargetOptions.h"
2020
2121// Define an externally visible version of
22- // InitTargetOptionsFromCodeGenFlags , so that its functionality can be
22+ // initTargetOptionsFromCodeGenFlags , so that its functionality can be
2323// used without having to include llvm/CodeGen/CommandFlags.inc, which
2424// would lead to multiple definitions of the command line flags.
25- llvm::TargetOptions lld::InitTargetOptionsFromCodeGenFlags () {
25+ llvm::TargetOptions lld::initTargetOptionsFromCodeGenFlags () {
2626 return ::InitTargetOptionsFromCodeGenFlags ();
2727}
2828
29- llvm::Optional<llvm::CodeModel::Model> lld::GetCodeModelFromCMModel () {
29+ llvm::Optional<llvm::CodeModel::Model> lld::getCodeModelFromCMModel () {
3030 return getCodeModel ();
3131}
3232
33- std::string lld::GetCPUStr () { return ::getCPUStr (); }
34- std::vector<std::string> lld::GetMAttrs () { return ::MAttrs; }
33+ std::string lld::getCPUStr () { return ::getCPUStr (); }
34+
35+ std::vector<std::string> lld::getMAttrs () { return ::MAttrs; }
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ static lto::Config createConfig() {
6868 lto::Config C;
6969
7070 // LLD supports the new relocations and address-significance tables.
71- C.Options = InitTargetOptionsFromCodeGenFlags ();
71+ C.Options = initTargetOptionsFromCodeGenFlags ();
7272 C.Options .RelaxELFRelocations = true ;
7373 C.Options .EmitAddrsig = true ;
7474
@@ -83,12 +83,12 @@ static lto::Config createConfig() {
8383 else
8484 C.RelocModel = Reloc::Static;
8585
86- C.CodeModel = GetCodeModelFromCMModel ();
86+ C.CodeModel = getCodeModelFromCMModel ();
8787 C.DisableVerify = Config->DisableVerify ;
8888 C.DiagHandler = diagnosticHandler;
8989 C.OptLevel = Config->LTOO ;
90- C.CPU = GetCPUStr ();
91- C.MAttrs = GetMAttrs ();
90+ C.CPU = getCPUStr ();
91+ C.MAttrs = getMAttrs ();
9292 C.CGOptLevel = args::getCGOptLevel (Config->LTOO );
9393
9494 // Set up a custom pipeline if we've been asked to.
Original file line number Diff line number Diff line change 1515#include " llvm/Target/TargetOptions.h"
1616
1717namespace lld {
18- llvm::TargetOptions InitTargetOptionsFromCodeGenFlags ();
19- llvm::Optional<llvm::CodeModel::Model> GetCodeModelFromCMModel ();
20- std::string GetCPUStr ();
21- std::vector<std::string> GetMAttrs ();
18+ llvm::TargetOptions initTargetOptionsFromCodeGenFlags ();
19+ llvm::Optional<llvm::CodeModel::Model> getCodeModelFromCMModel ();
20+ std::string getCPUStr ();
21+ std::vector<std::string> getMAttrs ();
2222}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ using namespace lld::wasm;
4141
4242static std::unique_ptr<lto::LTO> createLTO () {
4343 lto::Config C;
44- C.Options = InitTargetOptionsFromCodeGenFlags ();
44+ C.Options = initTargetOptionsFromCodeGenFlags ();
4545
4646 // Always emit a section per function/data with LTO.
4747 C.Options .FunctionSections = true ;
@@ -53,7 +53,7 @@ static std::unique_ptr<lto::LTO> createLTO() {
5353 C.DisableVerify = Config->DisableVerify ;
5454 C.DiagHandler = diagnosticHandler;
5555 C.OptLevel = Config->LTOO ;
56- C.MAttrs = GetMAttrs ();
56+ C.MAttrs = getMAttrs ();
5757 C.CGOptLevel = args::getCGOptLevel (Config->LTOO );
5858
5959 if (Config->Relocatable )
You can’t perform that action at this time.
0 commit comments