aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-25 23:22:50 +0000
committerChris Lattner <sabre@nondot.org>2009-10-25 23:22:50 +0000
commit1d871c5e547996a8dd5192e48d22aadf11cd2a9d (patch)
tree63629562e6b5d6efb35e15a44a8b8dad7a755c8c /test/CodeGen
parent22bbd9b9b89806fa9099442f8892f4e970ca54e9 (diff)
downloadexternal_llvm-1d871c5e547996a8dd5192e48d22aadf11cd2a9d.zip
external_llvm-1d871c5e547996a8dd5192e48d22aadf11cd2a9d.tar.gz
external_llvm-1d871c5e547996a8dd5192e48d22aadf11cd2a9d.tar.bz2
fix PR5295 where the .ll parser didn't reject a function after a global
or global after a function with conflicting names. Update some testcases that were accidentally depending on this behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/CPP/llvm2cpp.ll2
-rw-r--r--test/CodeGen/X86/x86-64-pic-10.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/CPP/llvm2cpp.ll b/test/CodeGen/CPP/llvm2cpp.ll
index 447f332..d0ba0cf 100644
--- a/test/CodeGen/CPP/llvm2cpp.ll
+++ b/test/CodeGen/CPP/llvm2cpp.ll
@@ -273,7 +273,7 @@ define i32 @foozball(i32) {
@A = global i32* @B ; <i32**> [#uses=0]
@B = global i32 7 ; <i32*> [#uses=1]
-define void @X() {
+define void @test12312() {
ret void
}
; ModuleID = 'global_section.ll'
diff --git a/test/CodeGen/X86/x86-64-pic-10.ll b/test/CodeGen/X86/x86-64-pic-10.ll
index 0f65e57..7baa7e5 100644
--- a/test/CodeGen/X86/x86-64-pic-10.ll
+++ b/test/CodeGen/X86/x86-64-pic-10.ll
@@ -3,7 +3,7 @@
@g = alias weak i32 ()* @f
-define void @g() {
+define void @h() {
entry:
%tmp31 = call i32 @g()
ret void