[LLVMdev] Assembling the output of llc

Talin viridia at gmail.com
Sun May 18 23:51:16 PDT 2008


Anton Korobeynikov wrote:
> Hello Talin,
>   
>> Yes exactly. I'm on OS X (x86), and I'm not specifying a target - I 
>> assumed that it would choose sensible defaults...
>>     
> Could you please provide a .bc testcase? There can be multiple issues,
> but at the first glance it seems, that names were not properly mangled.
>   
I've created bug http://llvm.org/bugs/show_bug.cgi?id=2342 and attached 
my example file to it.

It wouldn't surprise me if it was a problem with the name mangling. 
According to the docs, LLVM allows punctuation symbols inside of 
identifiers, and I am taking advantage of this to include the complete 
type signature of each method in its name, punctuation and all. (One of 
things I really dislike about C++ is trying to interpret mangled names 
in a stack trace.) I'm counting on LLVM to be able to quote/escape 
everything as needed.

-- Talin




More information about the llvm-dev mailing list