[llvm-commits] [llvm] r139669 - in /llvm/trunk: include/llvm/MC/MCParser/AsmLexer.h lib/MC/MCParser/AsmLexer.cpp lib/MC/MCParser/AsmParser.cpp

Kevin Enderby enderby at apple.com
Wed Sep 14 10:41:23 PDT 2011


This is for pre-processed assembly so that we give correct filename and line numbers when reporting errors in assembly files.  This is implemented in gas(1) where they turn these comments into .file and .line directives.  So nothing new here just trying to get correct error messages when using clang and -integrated-as on .s files.  I also plan to hook up the .file and .line directives to this too.

Kev

On Sep 13, 2011, at 11:35 PM, Nick Lewycky wrote:

> Kevin Enderby wrote:
>> Author: enderby
>> Date: Tue Sep 13 18:45:18 2011
>> New Revision: 139669
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=139669&view=rev
>> Log:
>> First step in supporting #line directives in assembler.  This step parses the
>> #line directives with the needed support in the lexer.  Next will be to build
>> a simple file/line# table mapping source SMLoc's for later use by diagnostics.
>> And the last step will be to get the diagnostics to use the mapping for file
>> and line numbers.
> 
> What is this feature? Is this for pre-processed assembly or intended to replace .loc? Is this syntax implemented by another assembler or is it something new?
> 
> Nick




More information about the llvm-commits mailing list