Fix typos

Also consolidate 'backward compatibility'

llvm-svn: 212974
This commit is contained in:
Alp Toker 2014-07-14 19:42:55 +00:00
parent 973b2ff322
commit 958027b698
10 changed files with 12 additions and 13 deletions

View File

@ -91,7 +91,7 @@ feature) or 0 if not. They can be used like this:
.. _langext-has-feature-back-compat:
For backwards compatibility reasons, ``__has_feature`` can also be used to test
For backward compatibility, ``__has_feature`` can also be used to test
for support for non-standardized features, i.e. features not prefixed ``c_``,
``cxx_`` or ``objc_``.

View File

@ -87,7 +87,7 @@ def call;
def cast;
// bitcast - Same as "cast", except a reinterpret-cast is produced:
// (bitcast "T", $p0) -> "*(T*)&__p0".
// The VAL argument is saved to a temprary so it can be used
// The VAL argument is saved to a temporary so it can be used
// as an l-value.
def bitcast;
// dup - Take a scalar argument and create a vector by duplicating it into

View File

@ -5459,7 +5459,7 @@ public:
case 'r': // CPU registers.
case 'd': // Equivalent to "r" unless generating MIPS16 code.
case 'y': // Equivalent to "r", backwards compatibility only.
case 'y': // Equivalent to "r", backward compatibility only.
case 'f': // floating-point registers.
case 'c': // $25 for indirect jumps
case 'l': // lo register

View File

@ -104,7 +104,7 @@ struct ScalarEnumerationTraits<FormatStyle::PointerAlignmentStyle> {
IO.enumCase(Value, "Left", FormatStyle::PAS_Left);
IO.enumCase(Value, "Right", FormatStyle::PAS_Right);
// For backward compability.
// For backward compatibility.
IO.enumCase(Value, "true", FormatStyle::PAS_Left);
IO.enumCase(Value, "false", FormatStyle::PAS_Right);
}

View File

@ -3911,7 +3911,7 @@ static void handleCapabilityAttr(Sema &S, Decl *D, const AttributeList &Attr) {
// concept, and so they use the same semantic attribute. Eventually, the
// lockable attribute will be removed.
//
// For backwards compatibility, any capability which has no specified string
// For backward compatibility, any capability which has no specified string
// literal will be considered a "mutex."
StringRef N("mutex");
SourceLocation LiteralLoc;

View File

@ -680,7 +680,7 @@ USEMEMFUNC(ExplicitlyImportInstantiatedTemplate<int>, func)
// MS: A dll attribute propagates through multiple levels of instantiation.
template <typename T> struct TopClass { void func() {} };
template <typename T> struct MiddleClass : public TopClass<T> { };
struct __declspec(dllexport) BottomClas : public MiddleClass<int> { };
struct __declspec(dllexport) BottomClass : public MiddleClass<int> { };
USEMEMFUNC(TopClass<int>, func)
// M32-DAG: define weak_odr dllexport x86_thiscallcc void @"\01?func@?$TopClass@H@@QAEXXZ"
// G32-DAG: define linkonce_odr x86_thiscallcc void @_ZN8TopClassIiE4funcEv

View File

@ -765,7 +765,7 @@ USEMEMFUNC(ExplicitlyImportInstantiatedTemplate<int>, func)
// MS: A dll attribute propagates through multiple levels of instantiation.
template <typename T> struct TopClass { void func() {} };
template <typename T> struct MiddleClass : public TopClass<T> { };
struct __declspec(dllimport) BottomClas : public MiddleClass<int> { };
struct __declspec(dllimport) BottomClass : public MiddleClass<int> { };
USEMEMFUNC(TopClass<int>, func)
// M32-DAG: {{declare|define available_externally}} dllimport x86_thiscallcc void @"\01?func@?$TopClass@H@@QAEXXZ"
// G32-DAG: define linkonce_odr x86_thiscallcc void @_ZN8TopClassIiE4funcEv

View File

@ -412,7 +412,7 @@ unsigned clang_getDiagnosticCategory(CXDiagnostic Diag) {
}
CXString clang_getDiagnosticCategoryName(unsigned Category) {
// Kept for backwards compatibility.
// Kept for backward compatibility.
return cxstring::createRef(DiagnosticIDs::getCategoryNameFromID(Category));
}

View File

@ -55,7 +55,7 @@ sorttable = {
// Sorttable v1 put rows with a class of "sortbottom" at the bottom (as
// "total" rows, for example). This is B&R, since what you're supposed
// to do is put them in a tfoot. So, if there are sortbottom rows,
// for backwards compatibility, move them to tfoot (creating it if needed).
// for backward compatibility, move them to tfoot (creating it if needed).
sortbottomrows = [];
for (var i=0; i<table.rows.length; i++) {
if (table.rows[i].className.search(/\bsortbottom\b/) != -1) {

View File

@ -2093,9 +2093,8 @@ NeonEmitter::genIntrinsicRangeCheckCode(raw_ostream &OS,
// their own builtin as they use the non-splat variant.
if (Def->hasSplat())
continue;
// Functions which do not have an immediate do not ned to have range
// checking
// code emitted.
// Functions which do not have an immediate do not need to have range
// checking code emitted.
if (!Def->hasImmediate())
continue;
if (Emitted.find(Def->getMangledName()) != Emitted.end())
@ -2121,7 +2120,7 @@ NeonEmitter::genIntrinsicRangeCheckCode(raw_ostream &OS,
UpperBound = utostr(Def->getReturnType().getElementSizeInBits() - 1);
} else if (R->getValueAsBit("isShift")) {
// Builtins which are overloaded by type will need to have thier upper
// Builtins which are overloaded by type will need to have their upper
// bound computed at Sema time based on the type constant.
// Right shifts have an 'r' in the name, left shifts do not.