summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.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/CodeGen/CodeGenFunction.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/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 9c5c45de5e9..e4332f6e7fb 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -171,7 +171,7 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) {
CurFn->setCallingConv(llvm::CallingConv::Fast);
if (const VisibilityAttr *attr = FD->getAttr<VisibilityAttr>())
- CurFn->setVisibility(attr->getVisibility());
+ CodeGenModule::setVisibility(CurFn, attr->getVisibility());
// FIXME: else handle -fvisibility
OpenPOWER on IntegriCloud