[PATCH] Support for generating DWARF .debug_aranges sections.
Eric Christopher
echristo at gmail.com
Fri Sep 13 18:49:33 PDT 2013
Easiest way to do that is to take two compile units and merge them together using llvm-link and then generate code for that. I'd suggest making them not share any types at the moment other than basic types, that work isn't quite done.
For example:
a.c:
int add(int a, int b) { return a+b; }
b.c:
extern int add(int a, int b);
int foo(int a, int b) { return add(a, b); }
compile them both to bitcode, link them together, and generate code. You could also take a look at the stmt-list-multiple-compile-units.ll testcase to get an idea of what it'll look like.
If you need any help send me email, I'm very interested in seeing this get in. I've got a few more comments that I'll make tonight or tomorrow.
http://llvm-reviews.chandlerc.com/D1649
More information about the llvm-commits
mailing list