[llvm-commits] new .file directive

Nick Lewycky nlewycky at google.com
Fri Oct 14 13:12:54 PDT 2011


Ping! I'd like to land this today, after the branch.

Does anybody really, really care about the .s format emitted by clang/llc
staying compatible with older assemblers? If so, do you have a suggestion
for how we should go about maintaining compatibility?

Nick

On 12 October 2011 16:05, Nick Lewycky <nlewycky at google.com> wrote:

> This patch implements a new extension to the .file directive. The intent is
> to let the user control what goes into the directory name vs. the file name
> section in the dwarf debug info. Currently, clang maintains them separately
> all the way through bitcode into MCStreamer, which then concatenates them to
> go through the existing .file method, then we split them back apart to be
> put in the Dwarf file. GCC does the equivalent on their end too.
>
> The novel syntax is ".file filenumber directory filename". The existing
> .file directive should continue to work the same as it always did and
> produce the same .o files. The syntax was proposed by Cary Coutant who will
> be taking on adding this to binutils gas in the future.
>
> Please review! In particular, the map<pair<string, string>, unsigned> is
> pretty bad. Suggestions welcomed.
>
> Finally, I'm planning to wait until after the llvm 3.0 branches before
> committing this. Because clang already hands LLVM separate directory and
> file parts, clang will immediately start emitting the new syntax through MC
> (as will llc on existing .bc files!).
>
> Nick
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111014/3eb8b304/attachment.html>


More information about the llvm-commits mailing list