Untabify.

llvm-svn: 274479
This commit is contained in:
NAKAMURA Takumi
2016-07-04 01:26:21 +00:00
parent f4c6441b01
commit 940cd9368d
3 changed files with 5 additions and 6 deletions

View File

@@ -1497,7 +1497,7 @@ Constant *LazyValueInfo::getConstant(Value *V, BasicBlock *BB,
} }
ConstantRange LazyValueInfo::getConstantRange(Value *V, BasicBlock *BB, ConstantRange LazyValueInfo::getConstantRange(Value *V, BasicBlock *BB,
Instruction *CxtI) { Instruction *CxtI) {
assert(V->getType()->isIntegerTy()); assert(V->getType()->isIntegerTy());
unsigned Width = V->getType()->getIntegerBitWidth(); unsigned Width = V->getType()->getIntegerBitWidth();
const DataLayout &DL = BB->getModule()->getDataLayout(); const DataLayout &DL = BB->getModule()->getDataLayout();

View File

@@ -5020,7 +5020,7 @@ const SCEV *ScalarEvolution::createSCEV(Value *V) {
MulOps.push_back(getSCEV(BO->LHS)); MulOps.push_back(getSCEV(BO->LHS));
break; break;
} }
BO = NewBO; BO = NewBO;
} while (true); } while (true);
return getMulExpr(MulOps); return getMulExpr(MulOps);

View File

@@ -479,7 +479,7 @@ Error RuntimeDyldImpl::computeTotalAllocSize(const ObjectFile &Obj,
// If this is the first common symbol, use its alignment as the alignment // If this is the first common symbol, use its alignment as the alignment
// for the common symbols section. // for the common symbols section.
if (CommonSize == 0) if (CommonSize == 0)
CommonAlign = Align; CommonAlign = Align;
CommonSize = alignTo(CommonSize, Align) + Size; CommonSize = alignTo(CommonSize, Align) + Size;
} }
} }
@@ -601,9 +601,8 @@ Error RuntimeDyldImpl::emitCommonSymbols(const ObjectFile &Obj,
// Allocate memory for the section // Allocate memory for the section
unsigned SectionID = Sections.size(); unsigned SectionID = Sections.size();
uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, CommonAlign, uint8_t *Addr = MemMgr.allocateDataSection(CommonSize, CommonAlign, SectionID,
SectionID, "<common symbols>", "<common symbols>", false);
false);
if (!Addr) if (!Addr)
report_fatal_error("Unable to allocate memory for common symbols!"); report_fatal_error("Unable to allocate memory for common symbols!");
uint64_t Offset = 0; uint64_t Offset = 0;