[PATCH] AST dependencies on VMCore


I recently had the occasion to examine the dependencies from
clang's AST library on LLVM's VMCore library. Attached is a patch
which eliminates the dependencies I found. The changes are to 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


clang-dependencies.patch (10.1 KB)

Excellent! Please apply,