diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-22 00:50:06 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-22 00:50:06 +0000 |
commit | 75d69da5abf01b22405ea91c2f2830a2ee4c3879 (patch) | |
tree | 6b0d1bbd05751b0d7dbc7d2a1196b1a8f425f720 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | da8fb591484371b10700fdc43da48b972053216d (diff) | |
download | bcm5719-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.cpp | 2 |
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 |