aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java
diff options
context:
space:
mode:
authorGravatar dslomov <dslomov@google.com>2017-08-21 12:52:41 +0200
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2017-08-21 14:16:34 +0200
commit375f95b16e1a8b164d2caaa4d65a4c9b4e310bd3 (patch)
treefaf5464b37651fa52f76d63f060e6dd2b09dd522 /src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java
parente3684497a5a8c4bd42ff970b37c49dc70bcc3eae (diff)
Rename some of native declared providers according to the new naming scheme.
RELNOTES: None PiperOrigin-RevId: 165910455
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java b/src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java
index 148fea7ab3..51582d3cc4 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/platform/PlatformProviderUtils.java
@@ -33,7 +33,7 @@ public class PlatformProviderUtils {
/** Retrieves and casts the {@link ConstraintSettingInfo} provider from the given target. */
public static ConstraintSettingInfo constraintSetting(SkylarkProviderCollection target) {
- return target.get(ConstraintSettingInfo.SKYLARK_CONSTRUCTOR);
+ return target.get(ConstraintSettingInfo.PROVIDER);
}
/** Retrieves and casts {@link ConstraintSettingInfo} providers from the given targets. */
@@ -55,6 +55,6 @@ public class PlatformProviderUtils {
/** Retrieves and casts the {@link ToolchainInfo} provider from the given target. */
public static ToolchainInfo toolchain(SkylarkProviderCollection target) {
- return target.get(ToolchainInfo.SKYLARK_CONSTRUCTOR);
+ return target.get(ToolchainInfo.PROVIDER);
}
}