diff options
| author | Teresa Johnson <tejohnson@google.com> | 2016-04-20 13:18:47 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2016-04-20 13:18:47 +0000 |
| commit | f0bedf5343b870c7ba4c647e94861c99066f861c (patch) | |
| tree | 893279c1d1a3436bcd1855c271736a9a8e4d05e9 /llvm/test/tools/gold/X86 | |
| parent | d3ded4a4413997c6fb7c6461e37a1bf327b4a78e (diff) | |
| download | bcm5719-llvm-f0bedf5343b870c7ba4c647e94861c99066f861c.tar.gz bcm5719-llvm-f0bedf5343b870c7ba4c647e94861c99066f861c.zip | |
Revert "[gold-plugin] Disable name for values other than GlobalValue"
This reverts commit r266871. Setting the default based on the NDEBUG
flag is causing test failures. Need to figure out whether to change this
approach or update tests.
llvm-svn: 266872
Diffstat (limited to 'llvm/test/tools/gold/X86')
| -rw-r--r-- | llvm/test/tools/gold/X86/strip_names.ll | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/llvm/test/tools/gold/X86/strip_names.ll b/llvm/test/tools/gold/X86/strip_names.ll deleted file mode 100644 index cd1d9f82444..00000000000 --- a/llvm/test/tools/gold/X86/strip_names.ll +++ /dev/null @@ -1,35 +0,0 @@ -; RUN: llvm-as %s -o %t.o - -; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ -; RUN: --plugin-opt=emit-llvm \ -; RUN: -shared %t.o -o %t2.o -; RUN: llvm-dis %t2.o -o - | FileCheck %s - -; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \ -; RUN: --plugin-opt=emit-llvm \ -; RUN: --plugin-opt=discard-value-names \ -; RUN: -shared %t.o -o %t2.o -; RUN: llvm-dis %t2.o -o - | FileCheck ---check-prefix=NONAME %s - -; CHECK: @GlobalValueName -; CHECK: @foo(i32 %in) -; CHECK: somelabel: -; CHECK: %GV = load i32, i32* @GlobalValueName -; CHECK: %add = add i32 %in, %GV -; CHECK: ret i32 %add - -; NONAME: @GlobalValueName -; NONAME: @foo(i32) -; NONAME-NOT: somelabel: -; NONAME: %2 = load i32, i32* @GlobalValueName -; NONAME: %3 = add i32 %0, %2 -; NONAME: ret i32 %3 - -@GlobalValueName = global i32 0 - -define i32 @foo(i32 %in) { -somelabel: - %GV = load i32, i32* @GlobalValueName - %add = add i32 %in, %GV - ret i32 %add -} |

