summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-08-13 01:36:11 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-08-13 01:36:11 +0000
commita2622dd266c9b4be1dff520c6e4820d72af37d42 (patch)
treecc741cae70cbe81ec477ffb521e19b6324ddb992 /clang/lib/CodeGen/CGExprScalar.cpp
parent3d1027e7a1b36be04a293fab2482e1134a58cfd8 (diff)
downloadbcm5719-llvm-a2622dd266c9b4be1dff520c6e4820d72af37d42.tar.gz
bcm5719-llvm-a2622dd266c9b4be1dff520c6e4820d72af37d42.zip
Zap unused UnaryOperator::OffsetOf.
llvm-svn: 110996
Diffstat (limited to 'clang/lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprScalar.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp
index 89947df9407..6898956eeb2 100644
--- a/clang/lib/CodeGen/CGExprScalar.cpp
+++ b/clang/lib/CodeGen/CGExprScalar.cpp
@@ -254,7 +254,6 @@ public:
Value *VisitUnaryExtension(const UnaryOperator *E) {
return Visit(E->getSubExpr());
}
- Value *VisitUnaryOffsetOf(const UnaryOperator *E);
// C++
Value *VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {
@@ -1412,12 +1411,6 @@ Value *ScalarExprEmitter::VisitUnaryImag(const UnaryOperator *E) {
return llvm::Constant::getNullValue(ConvertType(E->getType()));
}
-Value *ScalarExprEmitter::VisitUnaryOffsetOf(const UnaryOperator *E) {
- Value* ResultAsPtr = EmitLValue(E->getSubExpr()).getAddress();
- const llvm::Type* ResultType = ConvertType(E->getType());
- return Builder.CreatePtrToInt(ResultAsPtr, ResultType, "offsetof");
-}
-
//===----------------------------------------------------------------------===//
// Binary Operators
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud