| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ARM assembly syntax uses @ for a comment, execpt for the second
parameter of the .symver directive which requires @ as part of the
symbol name. This commit fixes the parsing of this directive by
adding a special case for ARM for this one argumnet.
To make the change we had to move the AllowAtInIdentifier variable
to the MCAsmLexer interface (from AsmLexer) and expose a setter for
the value. The ELFAsmParser then toggles this value when parsing
the second argument to the .symver directive for a target that
uses @ as a comment symbol
llvm-svn: 199339
|
| |
|
|
|
|
|
|
| |
No functionality change, but exposes the API so that codegen can use it too.
Patch by Katya Romanova.
llvm-svn: 192757
|
| |
|
|
|
|
|
|
|
|
| |
Allow binutils .type and .section directives to take the following
forms:
- @<type>
- %<type>
- "<type>"
llvm-svn: 191134
|
| |
|
|
| |
llvm-svn: 190769
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The '?' flag uses the last section group if the last had a section
group. We treat combining an explicit section group and the '?' as a
hard error.
This fixes PR17198.
Reviewers: rafael, bkramer
Reviewed By: bkramer
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1686
llvm-svn: 190768
|
| |
|
|
| |
llvm-svn: 190759
|
| |
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D598
llvm-svn: 179725
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
s/AddDirectiveHandler/addDirectiveHandler/
s/ParseMSInlineAsm/parseMSInlineAsm/
s/ParseIdentifier/parseIdentifier/
s/ParseStringToEndOfStatement/parseStringToEndOfStatement/
s/ParseEscapedString/parseEscapedString/
s/EatToEndOfStatement/eatToEndOfStatement/
s/ParseExpression/parseExpression/
s/ParseParenExpression/parseParenExpression/
s/ParseAbsoluteExpression/parseAbsoluteExpression/
s/CheckForValidSection/checkForValidSection/
http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly
No functional change intended.
llvm-svn: 175675
|
| |
|
|
|
|
| |
so.
llvm-svn: 175327
|
| |
|
|
|
|
|
| |
Since we already have this type it's a shame to keep dragging a pair of object
and method around explicitly.
llvm-svn: 172584
|
| |
|
|
|
|
| |
them.
llvm-svn: 171933
|
| |
|
|
| |
llvm-svn: 163547
|
| |
|
|
| |
llvm-svn: 156712
|
| |
|
|
| |
llvm-svn: 146377
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The .local, .hidden, .internal, and .protected are not legal for all supported
file formats (in particular, they're invalid for MachO). Move the parsing for
them into the ELF assembly parser since that's the format they're for.
Similarly, .weak is used by COFF and ELF, but not MachO, so move the parsing
to the COFF and ELF asm parsers. Previously, using any of these directives
on Darwin would result in an assertion failure in the parser; now we get
a diagnostic as we should.
rdar://9827089
llvm-svn: 135921
|
| |
|
|
| |
llvm-svn: 135917
|
| |
|
|
|
|
|
| |
Introduce a variable in the AsmParserExtension whether [] is valid in an
expression. If it is true, parse them like (). Enable this for ELF only.
llvm-svn: 126443
|
| |
|
|
|
|
| |
parser.
llvm-svn: 126225
|
| |
|
|
| |
llvm-svn: 125629
|
| |
|
|
|
|
|
| |
* If the name is a single string, we remove the quotes
* If the name starts without a quote, we include any quotes in the name
llvm-svn: 124127
|
| |
|
|
|
|
| |
Add support for SHT_X86_64_UNWIND.
llvm-svn: 124059
|
| |
|
|
| |
llvm-svn: 124056
|
| |
|
|
| |
llvm-svn: 124054
|
| |
|
|
| |
llvm-svn: 122568
|
| |
|
|
| |
llvm-svn: 120145
|
| |
|
|
|
|
| |
for any relocation to a symbol defined in a tls section.
llvm-svn: 120121
|
| |
|
|
| |
llvm-svn: 118980
|
| |
|
|
| |
llvm-svn: 118893
|
| |
|
|
| |
llvm-svn: 118805
|
| |
|
|
|
|
| |
earlier. Implicit bool -> int conversions are evil!
llvm-svn: 118651
|
| |
|
|
| |
llvm-svn: 118645
|
| |
|
|
| |
llvm-svn: 118639
|
| |
|
|
| |
llvm-svn: 118395
|
| |
|
|
| |
llvm-svn: 117911
|
| |
|
|
|
|
|
|
|
|
| |
* If we have a M or a G, reject sections without the type
* Only parse the flag specific arguments if we have M or G
* Parse the corresponding arguments for M and G
We ignore the G arguments and flag for now.
llvm-svn: 117608
|
| |
|
|
| |
llvm-svn: 117471
|
| |
|
|
|
|
| |
contained in the ELF object writer.
llvm-svn: 117448
|
| |
|
|
| |
llvm-svn: 117389
|
| |
|
|
|
|
| |
something else.
llvm-svn: 116142
|
| |
|
|
|
|
| |
constructing a section. Test for a few cases also included.
llvm-svn: 115132
|
| |
|
|
| |
llvm-svn: 114895
|
| |
|
|
| |
llvm-svn: 114091
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The ELF implementation now creates text, data and bss to match the gnu as
behavior.
The text streamer still has the old MachO specific behavior since
the testsuite checks that it will error when a directive is given
before a setting the current section for example.
A nice benefit is that -n is not required anymore when producing
ELF files.
llvm-svn: 114027
|
| |
|
|
| |
llvm-svn: 113691
|
| |
|
|
| |
llvm-svn: 112849
|
| |
|
|
| |
llvm-svn: 108928
|
| |
|
|
|
|
|
|
| |
portable enough.
- Downside is we now double dispatch through a stub function, but this isn't
performance critical.
llvm-svn: 108661
|
| |
|
|
| |
llvm-svn: 108647
|
| |
|
|
| |
llvm-svn: 108612
|
| |
|
|
| |
llvm-svn: 108609
|