]> granicus.if.org Git - clang/commitdiff
remove dead code.
authorChris Lattner <sabre@nondot.org>
Sat, 24 Jan 2009 20:24:49 +0000 (20:24 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 24 Jan 2009 20:24:49 +0000 (20:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62930 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprConstant.cpp

index b7c4f7fd39f8e6f1fd4b70e4925b0075149cb3f4..9d709d3a509d12960efb75a1c70e1eac993cdb67 100644 (file)
@@ -517,21 +517,6 @@ public:
     else
       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:
   llvm::Constant *EmitLValue(Expr *E) {