From 3ba25737448de9f2e22fafd602cee4e0d1fdb44c Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 2 May 2017 14:04:52 +0000 Subject: Add llvm::object::getELFSectionTypeName(). This is motivated by https://reviews.llvm.org/D32488 where I am trying to add printing of the section type for incompatible sections to LLD error messages. This patch allows us to use the same code in llvm-readobj and LLD instead of duplicating the function inside LLD. Patch by Alexander Richardson! llvm-svn: 301921 --- llvm/test/MC/ELF/section-numeric-invalid-type.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test') diff --git a/llvm/test/MC/ELF/section-numeric-invalid-type.s b/llvm/test/MC/ELF/section-numeric-invalid-type.s index 3ae071bc7c1..b8a39600eb1 100644 --- a/llvm/test/MC/ELF/section-numeric-invalid-type.s +++ b/llvm/test/MC/ELF/section-numeric-invalid-type.s @@ -8,7 +8,7 @@ // OBJ: Section { // OBJ: Name: .sec -// OBJ-NEXT: Type: (0x7FFFFFFF) +// OBJ-NEXT: Type: Unknown (0x7FFFFFFF) // OBJ: } // ASM: unsupported type 0x7fffffff for section .sec -- cgit v1.2.3