remove dead code.

llvm-svn: 62930
This commit is contained in:
Chris Lattner 2009-01-24 20:24:49 +00:00
parent 9e3ad5220d
commit 096d3ecb51
1 changed files with 0 additions and 15 deletions

View File

@ -518,21 +518,6 @@ public:
return llvm::ConstantExpr::getFPExtend(Src, DstTy); return llvm::ConstantExpr::getFPExtend(Src, DstTy);
} }
llvm::Constant *EmitSizeAlignOf(QualType TypeToSize,
QualType RetType, bool isSizeOf) {
std::pair<uint64_t, unsigned> Info =
CGM.getContext().getTypeInfo(TypeToSize);
uint64_t Val = isSizeOf ? Info.first : Info.second;
Val /= 8; // Return size in bytes, not bits.
assert(RetType->isIntegerType() && "Result type must be an integer!");
uint32_t ResultWidth =
static_cast<uint32_t>(CGM.getContext().getTypeSize(RetType));
return llvm::ConstantInt::get(llvm::APInt(ResultWidth, Val));
}
public: public:
llvm::Constant *EmitLValue(Expr *E) { llvm::Constant *EmitLValue(Expr *E) {
switch (E->getStmtClass()) { switch (E->getStmtClass()) {