summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/pascal-wchar-string.c
Commit message (Collapse)AuthorAgeFilesLines
* Driver: hoist the `wchar_t` handling to the driverSaleem Abdulrasool2017-10-061-1/+1
| | | | | | | | | | | | | | | | Move the logic for determining the `wchar_t` type information into the driver. Rather than passing the single bit of information of `-fshort-wchar` indicate to the frontend the desired type of `wchar_t` through a new `-cc1` option of `-fwchar-type` and indicate the signedness through `-f{,no-}signed-wchar`. This replicates the current logic which was spread throughout Basic into the `RenderCharacterOptions`. Most of the changes to the tests are to ensure that the frontend uses the correct type. Add a new test set under `test/Driver/wchar_t.c` to ensure that we calculate the proper types for the various cases. llvm-svn: 315126
* Fix the representation of wide strings in the AST and IR so that it uses the ↵Eli Friedman2011-11-011-2/+2
| | | | | | | | | | native representation of integers for the elements. This fixes a bunch of nastiness involving treating wide strings as a series of bytes. Patch by Seth Cantrell. llvm-svn: 143417
* Update clang tests for r137527.Eli Friedman2011-08-121-1/+1
| | | | llvm-svn: 137535
* The -fshort-wchar option causes wchar_t to become unsigned, in addition to beingChris Lattner2010-12-251-1/+11
| | | | | | | 16-bits in size. Implement this by splitting WChar into two enums, like we have for char. This fixes a miscompmilation of XULRunner, PR8856. llvm-svn: 122558
* Fix a miscompile of wchar pascal strings.Fariborz Jahanian2010-05-281-0/+31
(radar 8020384) llvm-svn: 104996
OpenPOWER on IntegriCloud