diff options
author | 2017-08-29 21:50:45 +0200 | |
---|---|---|
committer | 2017-08-30 13:48:01 +0200 | |
commit | 2c2810e3fbe941b803362d233390f4d75248dacf (patch) | |
tree | 2bfe620ae202a92cdeade2c3aaad0ab72a25ea20 /src/main/java/com/google/devtools/build/lib/rules/cpp | |
parent | 185f6938a47b01fa7f542a3365e09860c1023570 (diff) |
Narrow the LinkCommandLine API.
Previously it had too many essentially identical accessors. This trims it down a bit and adjusts the call sites.
This cl changes the command line passed to tests slightly - now they can possibly contain linkstamping command prepended to actual linker invocation.
RELNOTES: None.
PiperOrigin-RevId: 166888575
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java index 296befba8a..279ec83e77 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java @@ -264,19 +264,9 @@ public final class CppLinkAction extends AbstractAction return result.build(); } - @VisibleForTesting - public List<String> getRawLinkArgv() { - return linkCommandLine.getRawLinkArgv(); - } - - @VisibleForTesting - public List<String> getArgv() { - return linkCommandLine.arguments(); - } - @Override public List<String> getArguments() { - return getArgv(); + return linkCommandLine.arguments(); } /** |