diff options
author | 2017-08-02 16:16:51 +0200 | |
---|---|---|
committer | 2017-08-02 16:39:51 +0200 | |
commit | 98dbe037d7b6f2e815af1036373717e28d950698 (patch) | |
tree | d4667a9f18cae55485b9d900d162521897e344b2 /src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java | |
parent | 7456649316a96d9b6c26ed4636c029d60aa945bf (diff) |
Use camel case in names that included "LTO".
As suggested in readability review for https://github.com/bazelbuild/bazel/commit/2789c97149a1f253b659aa0f2401f44705a3258f. Ended up being a fair number of changes, but I think I got them all.
PiperOrigin-RevId: 163975846
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java index 0afccb6eb5..12e660fe47 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java @@ -283,19 +283,19 @@ public abstract class CcBinary implements RuleConfiguredTargetFactory { // Store immutable context for use in other *_binary rules that are implemented by // linking the interpreter (Java, Python, etc.) together with native deps. CppLinkAction.Context linkContext = new CppLinkAction.Context(linkActionBuilder); - Iterable<LTOBackendArtifacts> ltoBackendArtifacts = ImmutableList.of(); + Iterable<LtoBackendArtifacts> ltoBackendArtifacts = ImmutableList.of(); boolean usePic = CppHelper.usePic(ruleContext, !isLinkShared(ruleContext)); if (featureConfiguration.isEnabled(CppRuleClasses.THIN_LTO)) { - linkActionBuilder.setLTOIndexing(true); - linkActionBuilder.setUsePicForLTOBackendActions(usePic); - linkActionBuilder.setUseFissionForLTOBackendActions(cppConfiguration.useFission()); + linkActionBuilder.setLtoIndexing(true); + linkActionBuilder.setUsePicForLtoBackendActions(usePic); + linkActionBuilder.setUseFissionForLtoBackendActions(cppConfiguration.useFission()); CppLinkAction indexAction = linkActionBuilder.build(); ruleContext.registerAction(indexAction); - ltoBackendArtifacts = indexAction.getAllLTOBackendArtifacts(); + ltoBackendArtifacts = indexAction.getAllLtoBackendArtifacts(); - linkActionBuilder.setLTOIndexing(false); + linkActionBuilder.setLtoIndexing(false); } // On Windows, if GENERATE_PDB_FILE feature is enabled @@ -485,7 +485,7 @@ public abstract class CcBinary implements RuleConfiguredTargetFactory { } } - builder.addLTOBitcodeFiles(info.getCcCompilationOutputs().getLtoBitcodeFiles()); + builder.addLtoBitcodeFiles(info.getCcCompilationOutputs().getLtoBitcodeFiles()); builder.addNonCodeInputs(common.getLinkerScripts()); // Determine the libraries to link in. @@ -556,7 +556,7 @@ public abstract class CcBinary implements RuleConfiguredTargetFactory { LinkStaticness linkStaticness, boolean generateDwo, boolean ltoBackendArtifactsUsePic, - Iterable<LTOBackendArtifacts> ltoBackendArtifacts) { + Iterable<LtoBackendArtifacts> ltoBackendArtifacts) { if (linkStaticness == LinkStaticness.DYNAMIC) { return DwoArtifactsCollector.directCollector( context, compilationOutputs, generateDwo, ltoBackendArtifactsUsePic, ltoBackendArtifacts); |