Move local Db type out to namespace scope.
llvm-svn: 193169
This commit is contained in:
		
							parent
							
								
									b8f6168218
								
							
						
					
					
						commit
						517cb27c43
					
				| 
						 | 
					@ -4591,21 +4591,6 @@ struct string_pair
 | 
				
			||||||
    String move_full() {return std::move(first) + std::move(second);}
 | 
					    String move_full() {return std::move(first) + std::move(second);}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}  // unnamed namespace
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
__attribute__ ((__visibility__("default")))
 | 
					 | 
				
			||||||
extern "C"
 | 
					 | 
				
			||||||
char*
 | 
					 | 
				
			||||||
__cxa_demangle(const char* mangled_name, char* buf, size_t* n, int* status)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
    if (mangled_name == nullptr || (buf != nullptr && n == nullptr))
 | 
					 | 
				
			||||||
    {
 | 
					 | 
				
			||||||
        if (status)
 | 
					 | 
				
			||||||
            *status = invalid_args;
 | 
					 | 
				
			||||||
        return nullptr;
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    size_t internal_size = buf != nullptr ? *n : 0;
 | 
					 | 
				
			||||||
    arena<bs> a;
 | 
					 | 
				
			||||||
struct Db
 | 
					struct Db
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    typedef String String;
 | 
					    typedef String String;
 | 
				
			||||||
| 
						 | 
					@ -4628,6 +4613,22 @@ __cxa_demangle(const char* mangled_name, char* buf, size_t* n, int* status)
 | 
				
			||||||
        template_param(0, subs, ar)
 | 
					        template_param(0, subs, ar)
 | 
				
			||||||
    {}
 | 
					    {}
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}  // unnamed namespace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					__attribute__ ((__visibility__("default")))
 | 
				
			||||||
 | 
					extern "C"
 | 
				
			||||||
 | 
					char*
 | 
				
			||||||
 | 
					__cxa_demangle(const char* mangled_name, char* buf, size_t* n, int* status)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    if (mangled_name == nullptr || (buf != nullptr && n == nullptr))
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if (status)
 | 
				
			||||||
 | 
					            *status = invalid_args;
 | 
				
			||||||
 | 
					        return nullptr;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    size_t internal_size = buf != nullptr ? *n : 0;
 | 
				
			||||||
 | 
					    arena<bs> a;
 | 
				
			||||||
    Db db(a);
 | 
					    Db db(a);
 | 
				
			||||||
    db.cv = 0;
 | 
					    db.cv = 0;
 | 
				
			||||||
    db.ref = 0;
 | 
					    db.ref = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue