summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/cfstring.c
Commit message (Collapse)AuthorAgeFilesLines
* test: add explicit targets for some testsSaleem Abdulrasool2016-05-301-2/+4
| | | | | | | These tests currently expect MachO section names and do not provide a target. Explicitly provide one. llvm-svn: 271212
* Changed renaming of local symbols by inserting a dot vefore the numeric suffixSunil Srivastava2015-05-121-2/+2
| | | | | | | details in http://reviews.llvm.org/D9483 goes with llvm checkin r237150 llvm-svn: 237151
* Now that r199688 avoids the real issue, use private linkage for objc strings.Rafael Espindola2014-01-211-3/+3
| | | | llvm-svn: 199705
* Give explicit sections for string constants used in NSStrings.Rafael Espindola2014-01-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without them they can be merged with non unnamed_addr constants during LTO. The resulting constant is not unnamed_addr and goes in a different section, which causes ld64 to crash. A testcase that would crash before: * file1.mm: void g(id notification) { [notification valueForKey:@"name"]; } * file2.cpp: extern const char js_name_str[] = "name"; * file3.cpp extern bool JS_GetProperty(const char *name); extern const char js_name_str[]; bool js_ReportUncaughtException() { JS_GetProperty(js_name_str); } run clang file1.mm -o file1.o -c -w -emit-llvm clang file2.cpp -o file2.o -c -w -emit-llvm clang file3.cpp -o file3.o -c -w ld -dylib -o XUL file1.o file2.o file3.o -undefined dynamic_lookup. llvm-svn: 199688
* The `-fwritable-strings' flag doesn't make the backing store strings of allBill Wendling2012-01-101-0/+10
| | | | | | | | | | | CFStrings writable. The strings (both Unicode and ASCII) should reside in a read-only section. E.g., __TEXT,__cstring instead of __DATA,__data. This is done by making the global variable created for the strings constant despite the value of that flag. <rdar://problem/10657500> llvm-svn: 147845
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Make the constant folder aware of Eli Friedman2009-01-251-1/+3
| | | | | | | __builtin___CFStringMakeConstantString. (We get into trouble in GenerateStaticBlockVarDecl if the constant folder isn't accurate.) llvm-svn: 62949
* Make sema and codegen allow __builtin___CFStringMakeConstantString as a validChris Lattner2008-10-061-0/+5
| | | | | | | constant lvalue. Implement this in codegen by moving the code out of CGBuiltin into EmitConstantExpr. llvm-svn: 57163
* Update a number of CodeGen tests to not create .ll files in the testDaniel Dunbar2008-08-211-2/+2
| | | | | | | | directory. - Removed .ll from the svn:ignore lists to try and prevent this. - Added svn:ignore on test/Misc/Output llvm-svn: 55104
* Put back the flags field in the constant CF string type.Anders Carlsson2007-11-191-0/+6
llvm-svn: 44222
OpenPOWER on IntegriCloud