String constants are now output with private linkage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75777 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands 2009-07-15 12:09:18 +00:00
parent 56b1d5d9de
commit c3493cca4c
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
// RUN: %llvmgcc -xc %s -S -o - | grep {internal constant }
// RUN: %llvmgcc -xc %s -S -o - | grep {private constant }
// The synthetic global made by the CFE for big initializer should be marked
// constant.

View File

@ -1,8 +1,7 @@
// Test the -fwritable-strings option.
// RUN: %llvmgcc -O3 -S -o - -emit-llvm -fwritable-strings %s | \
// RUN: grep {internal global}
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {internal constant}
// RUN: grep {private global}
// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {private constant}
char *X = "foo";