|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| | llvm-svn: 82911 | 
| | 
| 
| 
| 
| 
| 
| | isAtStartOfComment and using that instead in two places where a loop
to check if the char was in MAI.getCommentString().
llvm-svn: 82059 | 
| | 
| 
| 
| 
| 
| 
| | preparation of supporting other targets. Then changed the lexer to parse these
as tokens.
llvm-svn: 81050 | 
| | 
| 
| 
| 
| 
| 
| 
| | supporting other targets.  Changed the code to pass MCAsmInfo to the parser
and the lexer.  Then changed the lexer to use CommentString from MCAsmInfo
instead of a literal '#' character.
llvm-svn: 81046 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| | from MCAsmLexer.h in preparation of supporting other targets.  Changed the
X86AsmParser code to reflect this by removing AsmLexer::LexPercent and looking
for AsmToken::Percent when parsing in places that used AsmToken::Register.
Then changed X86ATTAsmParser::ParseRegister to parse out registers as an
AsmToken::Percent followed by an AsmToken::Identifier.
llvm-svn: 80929 | 
| | 
| 
| 
| | llvm-svn: 78980 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | instead of syntactically as a string.  This means that it keeps track of the 
segment, section, flags, etc directly and asmprints them in the right format.
This also includes parsing and validation support for llvm-mc and 
"attribute(section)", so we should now start getting errors about invalid 
section attributes from the compiler instead of the assembler on darwin.
Still todo: 
1) Uniquing of darwin mcsections
2) Move all the Darwin stuff out to MCSectionMachO.[cpp|h]
3) there are a few FIXMEs, for example what is the syntax to get the
   S_GB_ZEROFILL segment type?
llvm-svn: 78547 | 
| | 
| 
| 
| | llvm-svn: 77337 | 
| | 
| 
| 
| | llvm-svn: 77323 | 
| | 
| 
| 
| | llvm-svn: 77322 | 
| | 
| 
| 
| | llvm-svn: 77292 | 
| | 
| 
| 
| | llvm-svn: 77287 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - Yay for '-'s and simplifications!
 - I kept StringMap::GetOrCreateValue for compatibility purposes, this can
   eventually go away. Likewise the StringMapEntry Create functions still follow
   the old style.
 - NIFC.
llvm-svn: 76888 | 
| | 
| 
| 
| | llvm-svn: 75896 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | - Don't print "Parsing" in front of every message.
 - Take additional "type" argument which is prepended to the message (with ": ")
   if given.
 - Update clients to print errors (warnings) as:
<filename>:<line number>: error(warning): ...
llvm-svn: 74489 | 
| | 
| 
| 
| | llvm-svn: 74462 | 
| | 
| 
| 
| | llvm-svn: 74448 | 
| | 
| 
| 
| | llvm-svn: 74208 | 
| | 
| 
| 
| 
| 
| | std::strings.
llvm-svn: 74036 | 
| | 
| 
| 
| 
| 
| | 176.gcc.llc.s
llvm-svn: 73950 | 
| | 
| 
| 
| | llvm-svn: 73929 | 
| | 
| 
| 
| | llvm-svn: 73879 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | all of health and voronoi (ignoring directives).  We only get 409 lines into
176.gcc though because we don't have binary operators yet:
Parsing 176.gcc.llc.s:409: unexpected token in operand list
	movsbl	_arityvec+1(,%edi,8), %eax
	      	         ^
llvm-svn: 73877 | 
| | 
| 
| 
| | llvm-svn: 73861 | 
| | 
| 
| 
| 
| 
| 
| 
| | print its error message when it returns an asmtok::Error token.
Compute a proper error code for llvm-mc in 'lex' mode.  Add new
-as-lex option to enable lexing mode (vs parsing mode).
llvm-svn: 73859 | 
| | 
| 
| 
| | llvm-svn: 73858 | 
| | 
| 
| 
| | llvm-svn: 73857 | 
| | 
| 
| 
| 
| 
| | without errors.
llvm-svn: 73855 | 
|  | llvm-svn: 73848 |