[llvm] r268210 - [llvm-readobj] Dump hash as part of -version-info.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sun May 1 19:30:19 PDT 2016
Author: davide
Date: Sun May 1 21:30:18 2016
New Revision: 268210
URL: http://llvm.org/viewvc/llvm-project?rev=268210&view=rev
Log:
[llvm-readobj] Dump hash as part of -version-info.
Modified:
llvm/trunk/test/tools/llvm-readobj/elf-versioninfo.test
llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
Modified: llvm/trunk/test/tools/llvm-readobj/elf-versioninfo.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-readobj/elf-versioninfo.test?rev=268210&r1=268209&r2=268210&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-readobj/elf-versioninfo.test (original)
+++ llvm/trunk/test/tools/llvm-readobj/elf-versioninfo.test Sun May 1 21:30:18 2016
@@ -59,6 +59,7 @@ CHECK-NEXT: Rev: 1
CHECK-NEXT: Flags: 1
CHECK-NEXT: Index: 1
CHECK-NEXT: Cnt: 1
+CHECK-NEXT: Hash: 430712
CHECK-NEXT: Name: blah
CHECK-NEXT: }
CHECK-NEXT: Entry {
@@ -67,6 +68,7 @@ CHECK-NEXT: Rev: 1
CHECK-NEXT: Flags: 0
CHECK-NEXT: Index: 2
CHECK-NEXT: Cnt: 1
+CHECK-NEXT: Hash: 175630257
CHECK-NEXT: Name: VERSION1
CHECK-NEXT: }
CHECK-NEXT: Entry {
@@ -75,6 +77,7 @@ CHECK-NEXT: Rev: 1
CHECK-NEXT: Flags: 0
CHECK-NEXT: Index: 3
CHECK-NEXT: Cnt: 2
+CHECK-NEXT: Hash: 175630258
CHECK-NEXT: Name: VERSION2
CHECK-NEXT: }
CHECK-NEXT: ]
Modified: llvm/trunk/tools/llvm-readobj/ELFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/ELFDumper.cpp?rev=268210&r1=268209&r2=268210&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/ELFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/ELFDumper.cpp Sun May 1 21:30:18 2016
@@ -561,6 +561,7 @@ static void printVersionDefinitionSectio
W.printNumber("Flags", VD->vd_flags);
W.printNumber("Index", VD->vd_ndx);
W.printNumber("Cnt", VD->vd_cnt);
+ W.printNumber("Hash", VD->vd_hash);
W.printString("Name",
StringRef((const char *)(Obj->base() + StrTab->sh_offset +
VD->getAux()->vda_name)));
More information about the llvm-commits
mailing list