diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-06-15 23:05:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-06-15 23:05:46 +0000 |
| commit | 23b7eb677d87a79179d5e71aba547c4c7794b215 (patch) | |
| tree | b53780d6f65b69236a0d25f0508d410c938303d4 /clang/CodeGen/ModuleBuilder.cpp | |
| parent | 2b228c95aa9bf69f27af12294149f57459ef41b1 (diff) | |
| download | bcm5719-llvm-23b7eb677d87a79179d5e71aba547c4c7794b215.tar.gz bcm5719-llvm-23b7eb677d87a79179d5e71aba547c4c7794b215.zip | |
Finally bite the bullet and make the major change: split the clang namespace
out of the llvm namespace. This makes the clang namespace be a sibling of
llvm instead of being a child.
The good thing about this is that it makes many things unambiguous. The
bad things is that many things in the llvm namespace (notably data structures
like smallvector) now require an llvm:: qualifier. IMO, libsystem and libsupport
should be split out of llvm into their own namespace in the future, which will fix
this issue.
llvm-svn: 39659
Diffstat (limited to 'clang/CodeGen/ModuleBuilder.cpp')
| -rw-r--r-- | clang/CodeGen/ModuleBuilder.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/clang/CodeGen/ModuleBuilder.cpp b/clang/CodeGen/ModuleBuilder.cpp index 2de81721826..16b13d1c4dd 100644 --- a/clang/CodeGen/ModuleBuilder.cpp +++ b/clang/CodeGen/ModuleBuilder.cpp @@ -13,28 +13,27 @@ #include "clang/CodeGen/ModuleBuilder.h" #include "CodeGenModule.h" -using namespace llvm; using namespace clang; /// Init - Create an ModuleBuilder with the specified ASTContext. -llvm::clang::CodeGen::BuilderTy * -llvm::clang::CodeGen::Init(ASTContext &Context, Module &M) { +clang::CodeGen::BuilderTy * +clang::CodeGen::Init(ASTContext &Context, llvm::Module &M) { return new CodeGenModule(Context, M); } -void llvm::clang::CodeGen::Terminate(BuilderTy *B) { +void clang::CodeGen::Terminate(BuilderTy *B) { delete static_cast<CodeGenModule*>(B); } /// CodeGenFunction - Convert the AST node for a FunctionDecl into LLVM. /// -void llvm::clang::CodeGen::CodeGenFunction(BuilderTy *B, FunctionDecl *D) { +void clang::CodeGen::CodeGenFunction(BuilderTy *B, FunctionDecl *D) { static_cast<CodeGenModule*>(B)->EmitFunction(D); } /// PrintStats - Emit statistic information to stderr. /// -void llvm::clang::CodeGen::PrintStats(BuilderTy *B) { +void clang::CodeGen::PrintStats(BuilderTy *B) { static_cast<CodeGenModule*>(B)->PrintStats(); } |

