summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-01 05:57:51 +0000
committerAlp Toker <alp@nuanti.com>2014-01-01 05:57:51 +0000
commit12e1f5dc4f3636eab2b7e5038bbe1d34014c2b71 (patch)
tree39aba27e167e239e00dc023a13afd8cef6985d0b /lib/CodeGen/CGExprScalar.cpp
parentca70f4fa1c4eae6a47c97c773b8e63803a43a90c (diff)
downloadclang-12e1f5dc4f3636eab2b7e5038bbe1d34014c2b71.tar.gz
clang-12e1f5dc4f3636eab2b7e5038bbe1d34014c2b71.tar.bz2
clang-12e1f5dc4f3636eab2b7e5038bbe1d34014c2b71.tar.xz
Eliminate UnaryTypeTraitExpr
Remove UnaryTypeTraitExpr and switch all remaining type trait related handling over to TypeTraitExpr. The UTT/BTT/TT enum prefix and evaluation code is retained pending further cleanup. This is part of the ongoing work to unify type traits following the removal of BinaryTypeTraitExpr in r197273. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198271 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index eea1bf8b82..15abc06b62 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -367,9 +367,6 @@ public:
CGF.EmitCXXDeleteExpr(E);
return 0;
}
- Value *VisitUnaryTypeTraitExpr(const UnaryTypeTraitExpr *E) {
- return Builder.getInt1(E->getValue());
- }
Value *VisitTypeTraitExpr(const TypeTraitExpr *E) {
return llvm::ConstantInt::get(ConvertType(E->getType()), E->getValue());