Mehdi Amini
149f6eaed9
Re-commit "Use StringRef in Support/Darf APIs (NFC)"
...
This reverts commit r283285 and re-commit r283275 with
a fix for format("%s", Str); where Str is a StringRef.
llvm-svn: 283298
2016-10-05 05:59:29 +00:00
Mehdi Amini
2bcac0fac4
Revert "Re-commit "Use StringRef in Support/Darf APIs (NFC)""
...
One test seems randomly broken: DebugInfo/X86/gnu-public-names.ll
llvm-svn: 283285
2016-10-05 01:04:02 +00:00
Mehdi Amini
32b297a42f
Re-commit "Use StringRef in Support/Darf APIs (NFC)"
...
This reverts commit r283278 and re-commit r283275 with
the update to fix the build on the LLDB side.
llvm-svn: 283281
2016-10-05 00:37:18 +00:00
Mehdi Amini
78b04ae7ac
Revert "Use StringRef in Support/Darf APIs (NFC)"
...
This reverts commit r283275, it broke LLDB Android debug server.
llvm-svn: 283278
2016-10-05 00:21:14 +00:00
Mehdi Amini
e0327be584
Use StringRef in Support/Darf APIs (NFC)
...
llvm-svn: 283275
2016-10-04 23:55:40 +00:00
Duncan P. N. Exon Smith
3b631d291e
Support: Add dwarf::getOperationEncoding()
...
llvm-svn: 229001
2015-02-13 01:05:00 +00:00
Duncan P. N. Exon Smith
7f95aacfe6
Support: Fix tests for VirtualityString
...
Since these `dwarf` functions return `const char *`, the tests need to
use `StringRef` for checks. Should fix, e.g., hexagon [1].
[1]: http://lab.llvm.org:8011/builders/clang-hexagon-elf/builds/22435
llvm-svn: 228478
2015-02-07 01:07:30 +00:00
Duncan P. N. Exon Smith
e7e2abe6a2
Support: Add dwarf::getVirtuality()
...
llvm-svn: 228474
2015-02-07 00:37:15 +00:00
Duncan P. N. Exon Smith
d6f3574210
Support: Use Dwarf.def for DW_VIRTUALITY, NFC
...
Use definition file for `DW_VIRTUALITY_*`. Add a `DW_VIRTUALITY_max`
both for ease of testing and for future use by the `LLParser`.
llvm-svn: 228473
2015-02-07 00:36:23 +00:00
Duncan P. N. Exon Smith
e07f13ae35
Support: Add dwarf::getAttributeEncoding()
...
llvm-svn: 228470
2015-02-06 23:46:49 +00:00
Duncan P. N. Exon Smith
8d4eeb53f6
Support: Stop stringifying DW_ATE_{lo,hi}_user
...
llvm-svn: 228468
2015-02-06 23:44:24 +00:00
Duncan P. N. Exon Smith
d40af00e66
Support: Add dwarf::getLanguage()
...
llvm-svn: 228458
2015-02-06 22:55:13 +00:00
Duncan P. N. Exon Smith
4031beb10a
Support: Stop stringifying DW_LANG_{lo,hi}_user
...
llvm-svn: 228451
2015-02-06 22:34:48 +00:00
Duncan P. N. Exon Smith
6f5546cdee
Support: Add string => unsigned mapping for DW_TAG
...
Add `dwarf::getTag()` to translate from `StringRef` to `unsigned`.
llvm-svn: 228031
2015-02-03 21:16:49 +00:00
Duncan P. N. Exon Smith
b036f1c98c
Support: Stop stringifying DW_TAG_{lo,hi}_user
...
`dwarf::TagString()` shouldn't stringify `DW_TAG_lo_user` or
`DW_TAG_hi_user`. These aren't actual tags; they're markers for the
edge of vendor-specific tag regions.
llvm-svn: 228029
2015-02-03 21:08:33 +00:00