- language recognition was recognizing prefixes incorrectly.
- -x none wasn't working.
- test for "can lipo" was backwords.
- missed a '"' in -ccc-print-phases
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66911
91177308-0d34-0410-b5e6-
96231b3b80d8
TYPE("object", Object, INVALID, "o", "")
TYPE("treelang", Treelang, INVALID, 0, "u")
TYPE("image", Image, INVALID, "out", "")
-TYPE("nothing", Nothing, INVALID, 0, "")
+TYPE("none", Nothing, INVALID, 0, "u")
os << Action::getClassName(A->getKind()) << ", ";
if (InputAction *IA = dyn_cast<InputAction>(A)) {
- os << IA->getInputArg().getValue(Args) << "\"";
+ os << "\"" << IA->getInputArg().getValue(Args) << "\"";
} else if (BindArchAction *BIA = dyn_cast<BindArchAction>(A)) {
os << "\"" << BIA->getArchName() << "\", "
<< "{" << PrintActions1(Args, *BIA->begin(), Ids) << "}";
// include the arch, which would also fix
// -save-temps. Compatibility wins for now.
- if (Archs.size() > 1 && types::canLipoType(Act->getType()))
+ if (Archs.size() > 1 && !types::canLipoType(Act->getType()))
Diag(clang::diag::err_drv_invalid_output_with_multiple_archs)
<< types::getTypeName(Act->getType());
for (unsigned i=0; i<numTypes; ++i) {
types::ID Id = (types::ID) (i + 1);
if (canTypeBeUserSpecified(Id) &&
- memcmp(Name, getInfo(Id).Name, N) == 0)
+ memcmp(Name, getInfo(Id).Name, N + 1) == 0)
return Id;
}