summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
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/CodeGen/CodeGenFunction.h
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/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 0693781bce8..63d89a78c72 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -350,6 +350,11 @@ public:
/// GetAddrOfStaticLocalVar - Return the address of a static local variable.
llvm::Constant *GetAddrOfStaticLocalVar(const VarDecl *BVD);
+
+ /// getAccessedFieldNo - Given an encoded value and a result number, return
+ /// the input field number being accessed.
+ static unsigned getAccessedFieldNo(unsigned Idx, const llvm::Constant *Elts);
+
//===--------------------------------------------------------------------===//
// Declaration Emission
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud