r197507 - Fix indentation from r197490 plus some typos
Alp Toker
alp at nuanti.com
Tue Dec 17 09:25:19 PST 2013
Author: alp
Date: Tue Dec 17 11:25:19 2013
New Revision: 197507
URL: http://llvm.org/viewvc/llvm-project?rev=197507&view=rev
Log:
Fix indentation from r197490 plus some typos
Modified:
cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
cfe/trunk/lib/Driver/ToolChain.cpp
cfe/trunk/lib/Parse/Parser.cpp
Modified: cfe/trunk/lib/AST/RecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/RecordLayoutBuilder.cpp?rev=197507&r1=197506&r2=197507&view=diff
==============================================================================
--- cfe/trunk/lib/AST/RecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/AST/RecordLayoutBuilder.cpp Tue Dec 17 11:25:19 2013
@@ -2193,7 +2193,7 @@ MicrosoftRecordLayoutBuilder::getAdjuste
Layout.getRequiredAlignment());
FieldInfo.second = std::max(FieldInfo.second,
Layout.getRequiredAlignment());
- // Track zero-sized subobjects here where it's already avaliable.
+ // Track zero-sized subobjects here where it's already available.
if (Layout.hasZeroSizedSubObject())
HasZeroSizedSubObject = true;
}
Modified: cfe/trunk/lib/Driver/ToolChain.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=197507&r1=197506&r2=197507&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChain.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChain.cpp Tue Dec 17 11:25:19 2013
@@ -157,14 +157,13 @@ bool ToolChain::HasNativeLLVMSupport() c
bool ToolChain::isCrossCompiling() const {
llvm::Triple HostTriple(LLVM_HOST_TRIPLE);
switch (HostTriple.getArch()) {
- // The A32/T32/T16 instruction sets are not seperate architectures in
- // this context.
- case llvm::Triple::arm:
- case llvm::Triple::thumb:
- return getArch() != llvm::Triple::arm &&
- getArch() != llvm::Triple::thumb;
- default:
- return HostTriple.getArch() != getArch();
+ // The A32/T32/T16 instruction sets are not separate architectures in this
+ // context.
+ case llvm::Triple::arm:
+ case llvm::Triple::thumb:
+ return getArch() != llvm::Triple::arm && getArch() != llvm::Triple::thumb;
+ default:
+ return HostTriple.getArch() != getArch();
}
}
Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=197507&r1=197506&r2=197507&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Tue Dec 17 11:25:19 2013
@@ -1443,8 +1443,8 @@ Parser::TryAnnotateName(bool IsAddressOf
// Look up and classify the identifier. We don't perform any typo-correction
// after a scope specifier, because in general we can't recover from typos
- // there (eg, after correcting 'A::tempalte B<X>::C', we would need to jump
- // back into scope specifier parsing).
+ // there (eg, after correcting 'A::tempalte B<X>::C' [sic], we would need to
+ // jump back into scope specifier parsing).
Sema::NameClassification Classification
= Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, Next,
IsAddressOfOperand, SS.isEmpty() ? CCC : 0);
More information about the cfe-commits
mailing list