]> granicus.if.org Git - llvm/commitdiff
[ThinLTO] Make test for promoted names more specific
authorTeresa Johnson <tejohnson@google.com>
Wed, 25 Oct 2017 03:41:31 +0000 (03:41 +0000)
committerTeresa Johnson <tejohnson@google.com>
Wed, 25 Oct 2017 03:41:31 +0000 (03:41 +0000)
With r314527, promoted values get a suffix that is a decimal value of
the module hash instead of hex. Change the regex to match only decimal
suffix values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316544 91177308-0d34-0410-b5e6-96231b3b80d8

test/ThinLTO/X86/local_name_conflict.ll

index ea2922ed9b91aee8d7228ad241778e209ed1630c..e4eb33e524d724e327cb503eff3c0242d978c739 100644 (file)
@@ -12,7 +12,7 @@
 ; that module (%t3.bc) to be imported. Check that the imported reference's
 ; promoted name matches the imported copy.
 ; RUN: llvm-lto -thinlto-action=import %t.bc -thinlto-index=%t4.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=IMPORT
-; IMPORT: call i32 @foo.llvm.[[HASH:[0-9A-F]+]]
+; IMPORT: call i32 @foo.llvm.[[HASH:[0-9]+]]
 ; IMPORT: define available_externally hidden i32 @foo.llvm.[[HASH]]()
 
 ; The copy in %t2.bc should not be exported/promoted/renamed