diff options
Diffstat (limited to 'lib/Core/Context.cpp')
-rw-r--r-- | lib/Core/Context.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Core/Context.cpp b/lib/Core/Context.cpp index 590b2080..45dbdca0 100644 --- a/lib/Core/Context.cpp +++ b/lib/Core/Context.cpp @@ -35,18 +35,6 @@ const Context &Context::get() { // FIXME: This is a total hack, just to avoid a layering issue until this stuff // moves out of Expr. -Expr::Width Expr::getWidthForLLVMType(const llvm::Type *t) { - switch (t->getTypeID()) { - default: - assert(0 && "non-primitive type argument to Expr::getTypeForLLVMType()\n"); - case llvm::Type::IntegerTyID: return cast<llvm::IntegerType>(t)->getBitWidth(); - case llvm::Type::FloatTyID: return Expr::Int32; - case llvm::Type::DoubleTyID: return Expr::Int64; - case llvm::Type::X86_FP80TyID: return 80; - case llvm::Type::PointerTyID: return Context::get().getPointerWidth(); - } -} - ref<Expr> Expr::createCoerceToPointerType(ref<Expr> e) { return ZExtExpr::create(e, Context::get().getPointerWidth()); } |