Skip to content

Commit 8b382e7

Browse files
committed
Fix Whitespace.
llvm-svn: 116800
1 parent 8d3f5db commit 8b382e7

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

llvm/lib/Target/TargetData.cpp

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ unsigned StructLayout::getElementContainingOffset(uint64_t Offset) const {
8383
assert((SI == &MemberOffsets[0] || *(SI-1) <= Offset) &&
8484
(SI+1 == &MemberOffsets[NumElements] || *(SI+1) > Offset) &&
8585
"Upper bound didn't work!");
86-
86+
8787
// Multiple fields can have the same offset if any of them are zero sized.
8888
// For example, in { i32, [0 x i32], i32 }, searching for offset 4 will stop
8989
// at the i32 element, because it is the last element at that offset. This is
@@ -153,16 +153,16 @@ void TargetData::init(StringRef Desc) {
153153
std::pair<StringRef, StringRef> Split = Desc.split('-');
154154
StringRef Token = Split.first;
155155
Desc = Split.second;
156-
156+
157157
if (Token.empty())
158158
continue;
159-
159+
160160
Split = Token.split(':');
161161
StringRef Specifier = Split.first;
162162
Token = Split.second;
163-
163+
164164
assert(!Specifier.empty() && "Can't be empty here");
165-
165+
166166
switch (Specifier[0]) {
167167
case 'E':
168168
LittleEndian = false;
@@ -197,7 +197,7 @@ void TargetData::init(StringRef Desc) {
197197
unsigned Size = getInt(Specifier.substr(1));
198198
Split = Token.split(':');
199199
unsigned ABIAlign = getInt(Split.first) / 8;
200-
200+
201201
Split = Split.second.split(':');
202202
unsigned PrefAlign = getInt(Split.first) / 8;
203203
if (PrefAlign == 0)
@@ -215,7 +215,7 @@ void TargetData::init(StringRef Desc) {
215215
Token = Split.second;
216216
} while (!Specifier.empty() || !Token.empty());
217217
break;
218-
218+
219219
default:
220220
break;
221221
}
@@ -231,7 +231,7 @@ TargetData::TargetData() : ImmutablePass(ID) {
231231
"Tool did not specify a TargetData to use?");
232232
}
233233

234-
TargetData::TargetData(const Module *M)
234+
TargetData::TargetData(const Module *M)
235235
: ImmutablePass(ID) {
236236
init(M->getDataLayout());
237237
}
@@ -249,14 +249,14 @@ TargetData::setAlignment(AlignTypeEnum align_type, unsigned abi_align,
249249
return;
250250
}
251251
}
252-
252+
253253
Alignments.push_back(TargetAlignElem::get(align_type, abi_align,
254254
pref_align, bit_width));
255255
}
256256

257-
/// getAlignmentInfo - Return the alignment (either ABI if ABIInfo = true or
257+
/// getAlignmentInfo - Return the alignment (either ABI if ABIInfo = true or
258258
/// preferred if ABIInfo = false) the target wants for the specified datatype.
259-
unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType,
259+
unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType,
260260
uint32_t BitWidth, bool ABIInfo,
261261
const Type *Ty) const {
262262
// Check to see if we have an exact match and remember the best match we see.
@@ -266,18 +266,18 @@ unsigned TargetData::getAlignmentInfo(AlignTypeEnum AlignType,
266266
if (Alignments[i].AlignType == AlignType &&
267267
Alignments[i].TypeBitWidth == BitWidth)
268268
return ABIInfo ? Alignments[i].ABIAlign : Alignments[i].PrefAlign;
269-
269+
270270
// The best match so far depends on what we're looking for.
271-
if (AlignType == INTEGER_ALIGN &&
271+
if (AlignType == INTEGER_ALIGN &&
272272
Alignments[i].AlignType == INTEGER_ALIGN) {
273273
// The "best match" for integers is the smallest size that is larger than
274274
// the BitWidth requested.
275-
if (Alignments[i].TypeBitWidth > BitWidth && (BestMatchIdx == -1 ||
275+
if (Alignments[i].TypeBitWidth > BitWidth && (BestMatchIdx == -1 ||
276276
Alignments[i].TypeBitWidth < Alignments[BestMatchIdx].TypeBitWidth))
277277
BestMatchIdx = i;
278278
// However, if there isn't one that's larger, then we must use the
279279
// largest one we have (see below)
280-
if (LargestInt == -1 ||
280+
if (LargestInt == -1 ||
281281
Alignments[i].TypeBitWidth > Alignments[LargestInt].TypeBitWidth)
282282
LargestInt = i;
283283
}
@@ -322,8 +322,8 @@ class StructLayoutMap : public AbstractTypeUser {
322322
I->first->removeAbstractTypeUser(this);
323323
LayoutInfo.erase(I);
324324
}
325-
326-
325+
326+
327327
/// refineAbstractType - The callback method invoked when an abstract type is
328328
/// resolved to another type. An object must override this method to update
329329
/// its internal state to reference NewType instead of OldType.
@@ -385,21 +385,21 @@ TargetData::~TargetData() {
385385
const StructLayout *TargetData::getStructLayout(const StructType *Ty) const {
386386
if (!LayoutMap)
387387
LayoutMap = new StructLayoutMap();
388-
388+
389389
StructLayoutMap *STM = static_cast<StructLayoutMap*>(LayoutMap);
390390
StructLayout *&SL = (*STM)[Ty];
391391
if (SL) return SL;
392392

393-
// Otherwise, create the struct layout. Because it is variable length, we
393+
// Otherwise, create the struct layout. Because it is variable length, we
394394
// malloc it, then use placement new.
395395
int NumElts = Ty->getNumElements();
396396
StructLayout *L =
397397
(StructLayout *)malloc(sizeof(StructLayout)+(NumElts-1) * sizeof(uint64_t));
398-
398+
399399
// Set SL before calling StructLayout's ctor. The ctor could cause other
400400
// entries to be added to TheMap, invalidating our reference.
401401
SL = L;
402-
402+
403403
new (L) StructLayout(Ty, *this);
404404

405405
if (Ty->isAbstract())
@@ -414,14 +414,14 @@ const StructLayout *TargetData::getStructLayout(const StructType *Ty) const {
414414
/// avoid a dangling pointer in this cache.
415415
void TargetData::InvalidateStructLayoutInfo(const StructType *Ty) const {
416416
if (!LayoutMap) return; // No cache.
417-
417+
418418
static_cast<StructLayoutMap*>(LayoutMap)->InvalidateEntry(Ty);
419419
}
420420

421421
std::string TargetData::getStringRepresentation() const {
422422
std::string Result;
423423
raw_string_ostream OS(Result);
424-
424+
425425
OS << (LittleEndian ? "e" : "E")
426426
<< "-p:" << PointerMemSize*8 << ':' << PointerABIAlign*8
427427
<< ':' << PointerPrefAlign*8;
@@ -430,10 +430,10 @@ std::string TargetData::getStringRepresentation() const {
430430
OS << '-' << (char)AI.AlignType << AI.TypeBitWidth << ':'
431431
<< AI.ABIAlign*8 << ':' << AI.PrefAlign*8;
432432
}
433-
433+
434434
if (!LegalIntWidths.empty()) {
435435
OS << "-n" << (unsigned)LegalIntWidths[0];
436-
436+
437437
for (unsigned i = 1, e = LegalIntWidths.size(); i != e; ++i)
438438
OS << ':' << (unsigned)LegalIntWidths[i];
439439
}

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7602,7 +7602,7 @@ SDValue X86TargetLowering::LowerVAARG(SDValue Op, SelectionDAG &DAG) const {
76027602

76037603
if (ArgMode == 2) {
76047604
// Sanity Check: Make sure using fp_offset makes sense.
7605-
assert(!UseSoftFloat &&
7605+
assert(!UseSoftFloat &&
76067606
!(DAG.getMachineFunction()
76077607
.getFunction()->hasFnAttr(Attribute::NoImplicitFloat)) &&
76087608
Subtarget->hasSSE1());

0 commit comments

Comments
 (0)