summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-22 00:50:06 +0000
committerDan Gohman <gohman@apple.com>2008-05-22 00:50:06 +0000
commit75d69da5abf01b22405ea91c2f2830a2ee4c3879 (patch)
tree6b0d1bbd05751b0d7dbc7d2a1196b1a8f425f720 /clang/lib/AST/Expr.cpp
parentda8fb591484371b10700fdc43da48b972053216d (diff)
downloadbcm5719-llvm-75d69da5abf01b22405ea91c2f2830a2ee4c3879.tar.gz
bcm5719-llvm-75d69da5abf01b22405ea91c2f2830a2ee4c3879.zip
Move getAccessedFieldNo out of lib/AST/Expr.cpp into
lib/CodeGen/CGExpr.cpp and to change include/clang/AST/Attr.h to use its own enum for visibility types instead of using llvm::GlobalValue::VisibilityTypes. These changes eliminate dependencies in the AST library on LLVM's VMCore library. llvm-svn: 51398
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index e7babf42643..e21686cf4ef 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -16,7 +16,6 @@
#include "clang/AST/StmtVisitor.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/TargetInfo.h"
-#include "llvm/Constants.h"
using namespace clang;
//===----------------------------------------------------------------------===//
@@ -1082,15 +1081,6 @@ void ExtVectorElementExpr::getEncodedElementAccess(
}
}
-unsigned
-ExtVectorElementExpr::getAccessedFieldNo(unsigned Idx,
- const llvm::Constant *Elts) {
- if (isa<llvm::ConstantAggregateZero>(Elts))
- return 0;
-
- return cast<llvm::ConstantInt>(Elts->getOperand(Idx))->getZExtValue();
-}
-
// constructor for instance messages.
ObjCMessageExpr::ObjCMessageExpr(Expr *receiver, Selector selInfo,
QualType retType, ObjCMethodDecl *mproto,
OpenPOWER on IntegriCloud