summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/static-init-pnacl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update Clang tests to handle explicitly typed load changes in LLVM.David Blaikie2015-02-271-1/+1
| | | | llvm-svn: 230795
* Make test pass in Release builds, IR names don't get emitted there.Benjamin Kramer2013-07-241-3/+3
| | | | llvm-svn: 187054
* Use ARM-style representation for C++ method pointers under PNaCl/EmscriptenMark Seaborn2013-07-241-0/+14
Before this change, Clang uses the x86 representation for C++ method pointers when generating code for PNaCl. However, the resulting code will assume that function pointers are 0 mod 2. This assumption is not safe for PNaCl, where function pointers could have any value (especially in future sandboxing models). So, switch to using the ARM representation for PNaCl code, which makes no assumptions about the alignment of function pointers. Since we're changing the "le32" target, this change also applies to Emscripten. The change is beneficial for Emscripten too. Emscripten has a workaround to make function pointers 0 mod 2. This change would allow the workaround to be removed. See: https://code.google.com/p/nativeclient/issues/detail?id=3450 llvm-svn: 187051
OpenPOWER on IntegriCloud