about summary refs log tree commit diff homepage
path: root/lib/Core/Context.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2010-06-24 22:12:27 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2010-06-24 22:12:27 +0000
commit717c804da48ee71f4b5aeee3ac0ba6c62a537224 (patch)
tree374dc73d90103069466fd38de753cc3b0bd7ecc4 /lib/Core/Context.cpp
parentb2f49b6d8578e4df8d33933fbe5b6c951f9150f1 (diff)
downloadklee-717c804da48ee71f4b5aeee3ac0ba6c62a537224.tar.gz
Use LLVM's TargetData::getTypeSizeInBits to determine type bitwidth instead of our own implementation
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@106800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Core/Context.cpp')
-rw-r--r--lib/Core/Context.cpp12
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());
 }