| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`do { ... } while (false)` is standard macro etiquette for forcing
instantiations into a single statement and requiring a `;` afterwards,
making statement-like macros easier to reason about (and harder to use
incorrectly).
I'm about to modify the macros in `LexIdentifier()`. I noticed that the
`KEYWORD` macro *does* follow the rule, so I thought I'd clean up the
other macros to match (otherwise might not be worth changing, since the
benefits of this pattern are fairly irrelevant here).
llvm-svn: 230095
|
|
|
|
|
|
|
|
|
| |
When trying to match the current schema with the new debug info
hierarchy, I downgraded `SizeInBits`, `AlignInBits` and `OffsetInBits`
to 32-bits (oops!). Caught this while testing my upgrade script to move
the hierarchy into place. Bump it back up to 64-bits and update tests.
llvm-svn: 229933
|
|
|
|
|
|
|
|
|
|
| |
Follow-up to r229740, which removed `DITemplate*::getContext()` after my
upgrade script revealed that scopes are always `nullptr` for template
parameters. This is the other shoe: drop `scope:` from
`MDTemplateParameter` and its two subclasses. (Note: a bitcode upgrade
would be pointless, since the hierarchy hasn't been moved into place.)
llvm-svn: 229791
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
It turns out that `count: -1` is a special value indicating an empty
array, such as `Values` in:
struct T {
unsigned Count;
int Values[];
};
Handle it.
llvm-svn: 229769
|
|
|
|
|
|
|
|
|
| |
Put the name before the value in assembly for `MDEnum`. While working
on the testcase upgrade script for the new hierarchy, I noticed that it
"looks nicer" to have the name first, since it lines the names up in the
(somewhat typical) case that they have a common prefix.
llvm-svn: 229747
|
|
|
|
| |
llvm-svn: 229365
|
|
|
|
| |
llvm-svn: 229364
|
|
|
|
| |
llvm-svn: 229363
|
|
|
|
| |
llvm-svn: 229025
|
|
|
|
| |
llvm-svn: 229024
|
|
|
|
| |
llvm-svn: 229023
|
|
|
|
| |
llvm-svn: 229022
|
|
|
|
| |
llvm-svn: 229020
|
|
|
|
| |
llvm-svn: 229019
|
|
|
|
| |
llvm-svn: 229018
|
|
|
|
| |
llvm-svn: 229017
|
|
|
|
| |
llvm-svn: 229016
|
|
|
|
| |
llvm-svn: 229015
|
|
|
|
| |
llvm-svn: 229014
|
|
|
|
| |
llvm-svn: 229013
|
|
|
|
| |
llvm-svn: 229011
|
|
|
|
| |
llvm-svn: 229010
|
|
|
|
| |
llvm-svn: 229009
|
|
|
|
| |
llvm-svn: 229007
|
|
|
|
| |
llvm-svn: 229006
|
|
|
|
| |
llvm-svn: 229005
|
|
|
|
| |
llvm-svn: 229004
|
|
|
|
| |
llvm-svn: 229003
|
|
|
|
|
|
| |
An alloca's type should be weird things like metadata.
llvm-svn: 228820
|
|
|
|
| |
llvm-svn: 228813
|
|
|
|
|
|
| |
This speeds up parsing .ll files with metadata nodes with large IDs.
llvm-svn: 228812
|
|
|
|
|
|
|
|
|
|
| |
This allows IDEs to recognize the entire set of header files for
each of the core LLVM projects.
Differential Revision: http://reviews.llvm.org/D7526
Reviewed By: Chris Bieneman
llvm-svn: 228798
|
|
|
|
|
|
| |
Well, the exact error from the failed parse will change, but...
llvm-svn: 228644
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove unnecessary restriction of 24-bits for line numbers in
`MDLocation`.
The rest of the debug info schema (with the exception of local
variables) uses 32-bits for line numbers. As I introduce the
specialized nodes, it makes sense to canonicalize on one size or the
other.
llvm-svn: 228455
|
|
|
|
| |
llvm-svn: 228448
|
|
|
|
|
|
|
| |
Split out `LineField`, which restricts the legal line numbers. This
will make it easier to be consistent between different node parsers.
llvm-svn: 228226
|
|
|
|
| |
llvm-svn: 228213
|
|
|
|
|
|
|
|
| |
Move all the types of `MDField` to an anonymous namespace in the source
file. This also eliminates the duplication of `ParseMDField()`
declarations in the header for each new field type.
llvm-svn: 228211
|
|
|
|
| |
llvm-svn: 228209
|
|
|
|
|
|
| |
This condition is checked in the generic `ParseMDField()`.
llvm-svn: 228208
|
|
|
|
|
|
| |
We only need `uint64_t` for storage.
llvm-svn: 228205
|
|
|
|
|
|
|
| |
Recognize `DW_TAG_` constants in assembly, and output it by default for
`GenericDebugNode`.
llvm-svn: 228042
|
|
|
|
| |
llvm-svn: 228041
|
|
|
|
|
|
|
|
|
| |
Move debug-info-centred `Metadata` subclasses into their own
header/source file. A couple of private template functions are needed
from both `Metadata.cpp` and `DebugInfoMetadata.cpp`, so I've moved them
to `lib/IR/MetadataImpl.h`.
llvm-svn: 227835
|
|
|
|
|
|
| |
Patch by Robin Eklind!
llvm-svn: 227442
|
|
|
|
|
|
| |
Extract most of `PARSE_MD_FIELD()` into a function.
llvm-svn: 226539
|
|
|
|
| |
llvm-svn: 226538
|
|
|
|
| |
llvm-svn: 226527
|
|
|
|
| |
llvm-svn: 226526
|
|
|
|
| |
llvm-svn: 226524
|