Rename hasUniqueInput to hasSingleInput.

This commit is contained in:
David Ungar
2017-12-06 15:25:16 -08:00
parent 4c5d5faa63
commit 704d7258d1
5 changed files with 10 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ using namespace swift;
using namespace llvm::opt;
bool FrontendInputs::shouldTreatAsLLVM() const {
if (hasUniqueInput()) {
if (hasSingleInput()) {
StringRef Input(getFilenameOfFirstInput());
return llvm::sys::path::extension(Input).endswith(LLVM_BC_EXTENSION) ||
llvm::sys::path::extension(Input).endswith(LLVM_IR_EXTENSION);
@@ -37,7 +37,7 @@ bool FrontendInputs::shouldTreatAsLLVM() const {
}
bool FrontendInputs::shouldTreatAsSIL() const {
if (hasUniqueInput()) {
if (hasSingleInput()) {
// If we have exactly one input filename, and its extension is "sil",
// treat the input as SIL.
StringRef Input(getFilenameOfFirstInput());