summaryrefslogtreecommitdiffstats
path: root/clang/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
commit95e7ff2ed1e6e884e88d8210988fcb7bb5a5e4e0 (patch)
tree23da4a95485ef254405e07738d6471c375b70ca3 /clang/lib/CodeGen/CGExprScalar.cpp
parent383d2c478cdd1f688a2e0d71a8867eef33316c0a (diff)
downloadbcm5719-llvm-95e7ff2ed1e6e884e88d8210988fcb7bb5a5e4e0.tar.gz
bcm5719-llvm-95e7ff2ed1e6e884e88d8210988fcb7bb5a5e4e0.zip
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. llvm-svn: 198271
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index eea1bf8b82d..15abc06b627 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/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());
OpenPOWER on IntegriCloud