Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AIX] demangle xcoff label symbol for llvm-nm
Summary: modified the demangle for the xcoff label symbol. Reviewers: James Henderson Differential Revision: https://reviews.llvm.org/D113106
- Loading branch information
Showing
2 changed files
with
65 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
## Test llvm-nm demangling of symbols for XCOFF object files. | ||
## Test following symbols: | ||
## 1. Empty name | ||
## 2. Name consisting solely of . | ||
## 3. Name starting with . that can't be demangled | ||
## 4. Name starting with . that can be demangled | ||
## 5. Name not starting with . that can't be demangled | ||
## 6. Name not starting with . that can be demangled | ||
|
||
# RUN: yaml2obj --docnum=1 %s -o %t.o | ||
# RUN: llvm-nm --demangle --format=just-symbols %t.o 2>&1 | FileCheck %s --check-prefix=NM-DEMANGLE --match-full-lines | ||
|
||
# NM-DEMANGLE: {{$}} | ||
# NM-DEMANGLE-NEXT: . | ||
# NM-DEMANGLE-NEXT: ._5func1i | ||
# NM-DEMANGLE-NEXT: .func1(int) | ||
# NM-DEMANGLE-NEXT: L5func0v | ||
# NM-DEMANGLE-NEXT: func0() | ||
|
||
--- !XCOFF | ||
FileHeader: | ||
MagicNumber: 0x1DF | ||
Sections: | ||
- Name: .text | ||
Flags: [ STYP_TEXT ] | ||
- Name: .data | ||
Flags: [ STYP_DATA ] | ||
Symbols: | ||
- Name: "" | ||
Section: .text | ||
- Name: . | ||
Section: .text | ||
- Name: ._Z5func1i | ||
Section: .text | ||
- Name: ._5func1i | ||
Section: .text | ||
- Name: _ZL5func0v | ||
Section: .data | ||
- Name: L5func0v | ||
Section: .data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters