mirror of https://github.com/m-labs/artiq.git
compiler: skip demangling list of empty names
This commit is contained in:
parent
7ad32d903a
commit
30ef8d8cb4
|
@ -256,6 +256,8 @@ class Target:
|
||||||
return backtrace
|
return backtrace
|
||||||
|
|
||||||
def demangle(self, names):
|
def demangle(self, names):
|
||||||
|
if not any(names):
|
||||||
|
return names
|
||||||
with RunTool([self.tool_cxxfilt] + names) as results:
|
with RunTool([self.tool_cxxfilt] + names) as results:
|
||||||
return results["__stdout__"].read().rstrip().split("\n")
|
return results["__stdout__"].read().rstrip().split("\n")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue