mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
Don't ignore extern(C++) namespaces during codegen
This commit is contained in:
parent
88cb50007c
commit
c8dae96434
1 changed files with 13 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "enum.h"
|
||||
#include "id.h"
|
||||
#include "init.h"
|
||||
#include "nspace.h"
|
||||
#include "rmem.h"
|
||||
#include "template.h"
|
||||
#include "gen/classes.h"
|
||||
|
@ -133,6 +134,18 @@ public:
|
|||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void visit(Nspace *ns) LLVM_OVERRIDE {
|
||||
IF_LOG Logger::println("Nspace::codegen for %s", ns->toPrettyChars());
|
||||
LOG_SCOPE
|
||||
|
||||
if (!isError(ns) && ns->members) {
|
||||
for (auto sym : *ns->members)
|
||||
sym->accept(this);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void visit(InterfaceDeclaration *decl) LLVM_OVERRIDE {
|
||||
IF_LOG Logger::println("InterfaceDeclaration::codegen: '%s'",
|
||||
decl->toPrettyChars());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue