| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
llvm-svn: 149967
|
|
|
|
|
|
| |
parser change dialect on the fly.
llvm-svn: 149396
|
|
|
|
| |
llvm-svn: 149179
|
|
|
|
| |
llvm-svn: 149175
|
|
|
|
|
|
| |
messages and allows us to fix PR11865.
llvm-svn: 149174
|
|
|
|
|
|
| |
Provide source line number information.
llvm-svn: 149101
|
|
|
|
| |
llvm-svn: 148733
|
|
|
|
| |
llvm-svn: 148578
|
|
|
|
|
|
|
| |
directives was in the wrong place and getting triggered incorectly with a
cpp .file directive. This change fixes that and adds a test case.
llvm-svn: 147951
|
|
|
|
| |
llvm-svn: 147880
|
|
|
|
|
|
|
| |
functional change in r147860 to use DW_TAG_label's instead TAG_subprogram's.
This only changes names and updates comments. No functional change.
llvm-svn: 147877
|
|
|
|
| |
llvm-svn: 147356
|
|
|
|
| |
llvm-svn: 147352
|
|
|
|
|
|
| |
buffer copy. Suggestion by Chris Lattner!
llvm-svn: 146614
|
|
|
|
|
|
| |
getStreamer().EmitBytes. Suggestion by Benjamin Kramer!
llvm-svn: 146599
|
|
|
|
|
|
| |
it to the streamer. rdar://10383898
llvm-svn: 146592
|
|
|
|
|
|
|
|
|
|
| |
generates the dwarf Compile Unit DIE and a dwarf subprogram DIE for each
non-temporary label.
The next part will be to get the clang driver to enable this when assembling
a .s file. rdar://9275556
llvm-svn: 146262
|
|
|
|
|
|
| |
Thanks to Nick for spotting this!
llvm-svn: 143556
|
|
|
|
|
|
|
|
|
|
|
|
| |
-g flag. In this part we generate the .file for the source being assembled and
the .loc's for the assembled instructions.
The next part will be to generate the dwarf Compile Unit DIE and a dwarf
subprogram DIE for each non-temporary label.
Once the next part is done test cases will be added. rdar://9275556
llvm-svn: 143509
|
|
|
|
| |
llvm-svn: 142537
|
|
|
|
|
|
|
|
|
|
| |
.file filenumber "directory" "filename"
This removes one join+split of the directory+filename in MC internals. Because
bitcode files have independent fields for directory and filenames in debug info,
this patch may change the .o files written by existing .bc files.
llvm-svn: 142300
|
|
|
|
|
|
|
|
| |
diagnostics for #line directives.
This reenables proper inline asm diagnostics in clang
llvm-svn: 142132
|
|
|
|
| |
llvm-svn: 142108
|
|
|
|
|
|
|
|
| |
note/warning/error as a
string, pass it around as an enum.
llvm-svn: 142107
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
does. Enhance
the X86 asmparser to produce ranges in the one case that was annoying me, for example:
test.s:10:15: error: invalid operand for instruction
movl 0(%rax), 0(%edx)
^~~~~~~
It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use
ranges where appropriate if someone is interested.
llvm-svn: 142106
|
|
|
|
|
|
|
|
| |
for cpp pre-processed assembly we give correct filename and line numbers when
reporting errors in assembly files when using clang and -integrated-as on .s
files. rdar://8998895
llvm-svn: 141814
|
|
|
|
|
|
|
|
|
| |
Assembler private local symbols aren't legal targets of symbol attributes,
so issue a diagnostic for them.
Based on patch by Stepan Dyatkovskiy.
llvm-svn: 139807
|
|
|
|
|
|
|
|
|
| |
#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.
llvm-svn: 139669
|
|
|
|
|
|
| |
rdar://9976729
llvm-svn: 138208
|
|
|
|
|
|
| |
The argument is unused, and is a layering violation in any case.
llvm-svn: 137735
|
|
|
|
| |
llvm-svn: 136197
|
|
|
|
|
|
| |
MCTargetAsmLexer; rename createAsmLexer to createMCAsmLexer and createAsmParser to createMCAsmParser.
llvm-svn: 136027
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
they belong.
llvm-svn: 135833
|
|
|
|
|
|
|
| |
There is still a bit more refactoring left to do in Targets. But we are now very
close to fixing all the layering issues in MC.
llvm-svn: 135611
|
|
|
|
|
|
|
|
| |
TargetLoweringObjectFileImpl down to MCObjectFileInfo.
TargetAsmInfo is done to one last method. It's *almost* gone!
llvm-svn: 135569
|
|
|
|
|
|
|
|
|
| |
to MCRegisterInfo. Also initialize the mapping at construction time.
This patch eliminate TargetRegisterInfo from TargetAsmInfo. It's another step
towards fixing the layering violation.
llvm-svn: 135424
|
|
|
|
|
|
|
|
|
|
|
| |
Update the debug output interface for MCParsedAsmOperand to have a print()
method which takes an output stream argument, an << operator which invokes
the print method using the given stream, and a dump() method which prints
the operand to the dbgs() stream. This makes the interface more consistent
with the rest of LLVM, and more convenient to use at the debugger command
line.
llvm-svn: 135043
|
|
|
|
|
|
|
|
|
| |
For example, ".byte 256" would previously assert() when emitting an object
file. Now it generates a diagnostic that the literal value is out of range.
rdar://9686950
llvm-svn: 134069
|
|
|
|
| |
llvm-svn: 133349
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Re-apply 133010, with fixes for inline assembler.
Original commit message:
"When an assembler local symbol is used but not defined in a module, a
Darwin assembler wants to issue a diagnostic to that effect."
Added fix to only perform the check when finalizing, as otherwise we're not
done and undefined symbols may simply not have been encountered yet.
Passes "make check" and a self-host check on Darwin.
llvm-svn: 133071
|
|
|
|
|
|
|
| |
Apparently llvm itself generates undefined assembler local labels, causing
self-hosting problems with this patch. Reverting until that's sorted out.
llvm-svn: 133013
|
|
|
|
|
|
|
|
|
| |
When an assembler local symbol is used but not defined in a module, a
Darwin assembler wants to issue a diagnostic to that effect.
rdar://9559714
llvm-svn: 133010
|
|
|
|
|
|
|
|
|
|
|
| |
We still don't handle
* default values
* :req
* :vararg
* \()
llvm-svn: 132656
|
|
|
|
|
|
|
|
|
|
| |
Parsing a register name/number for .cfi directives can't assume that a
register name starts with a '%' token. Be more flexible and check for a
register number instead. Still unlikely to be perfect, but it allows us
to parse both plain identifiers as register names and integers as register
numbers, which is what we're wanting to support at this point.
llvm-svn: 132466
|
|
|
|
| |
llvm-svn: 132395
|
|
|
|
| |
llvm-svn: 131918
|
|
|
|
|
|
| |
Introduce -fatal-assembler-warnings for the obvious purpose
llvm-svn: 131655
|
|
|
|
| |
llvm-svn: 131653
|
|
|
|
| |
llvm-svn: 131644
|