From bf6df4192e9404432ff8c787475b352d475ceb85 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 5 Dec 2013 21:48:38 +0100 Subject: Deprecate LLVM 2.8 and lower --- lib/Expr/Expr.cpp | 4 ---- lib/Expr/Parser.cpp | 8 -------- 2 files changed, 12 deletions(-) (limited to 'lib/Expr') diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index a28ad907..82c60205 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -354,11 +354,7 @@ void ConstantExpr::toString(std::string &Res, unsigned radix) const { ref ConstantExpr::Concat(const ref &RHS) { Expr::Width W = getWidth() + RHS->getWidth(); APInt Tmp(value); -#if LLVM_VERSION_CODE <= LLVM_VERSION(2, 8) - Tmp.zext(W); -#else Tmp=Tmp.zext(W); -#endif Tmp <<= RHS->getWidth(); Tmp |= APInt(RHS->value).zext(W); diff --git a/lib/Expr/Parser.cpp b/lib/Expr/Parser.cpp index 3871286e..5b3e96b7 100644 --- a/lib/Expr/Parser.cpp +++ b/lib/Expr/Parser.cpp @@ -1496,17 +1496,9 @@ ExprResult ParserImpl::ParseNumberToken(Expr::Width Type, const Token &Tok) { Val = -Val; if (Type < Val.getBitWidth()) -#if LLVM_VERSION_CODE <= LLVM_VERSION(2, 8) - Val.trunc(Type); -#else Val=Val.trunc(Type); -#endif else if (Type > Val.getBitWidth()) -#if LLVM_VERSION_CODE <= LLVM_VERSION(2, 8) - Val.zext(Type); -#else Val=Val.zext(Type); -#endif return ExprResult(Builder->Constant(Val)); } -- cgit 1.4.1