llvm-project/clang/lib/ARCMigrate
Erich Keane 0a6b5b653e PTH-- Remove feature entirely-
When debugging a boost build with a modified
version of Clang, I discovered that the PTH implementation
stores TokenKind in 8 bits. However, we currently have 368
TokenKinds.

The result is that the value gets truncated and the wrong token
gets picked up when including PTH files. It seems that this will
go wrong every time someone uses a token that uses the 9th bit.

Upon asking on IRC, it was brought up that this was a highly
experimental features that was considered a failure. I discovered
via googling that BoostBuild (mostly Boost.Math) is the only user of
this
feature, using the CC1 flag directly. I believe that this can be
transferred over to normal PCH with minimal effort:
https://github.com/boostorg/build/issues/367

Based on advice on IRC and research showing that this is a nearly
completely unused feature, this patch removes it entirely.

Note: I considered leaving the build-flags in place and making them
emit an error/warning, however since I've basically identified and
warned the only user, it seemed better to just remove them.

Differential Revision: https://reviews.llvm.org/D54547

Change-Id: If32744275ef1f585357bd6c1c813d96973c4d8d9
llvm-svn: 348266
2018-12-04 14:34:09 +00:00
..
ARCMT.cpp PTH-- Remove feature entirely- 2018-12-04 14:34:09 +00:00
ARCMTActions.cpp [Frontend] Make the memory management of FrontendAction pointers explicit by using unique_ptr. 2016-02-07 19:28:36 +00:00
CMakeLists.txt Add missing library dependency to fix build break after rC340247 2018-08-21 11:41:41 +00:00
FileRemapper.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
Internals.h Remove trailing space 2018-07-30 19:24:48 +00:00
ObjCMT.cpp [analyzer] [NFC] Split up RetainSummaryManager from RetainCountChecker - try #2 2018-08-21 03:09:02 +00:00
PlistReporter.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
TransAPIUses.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
TransARCAssign.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
TransAutoreleasePool.cpp Create ConstantExpr class 2018-10-31 03:48:47 +00:00
TransBlockObjCVariable.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
TransEmptyStatementsAndDealloc.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
TransGCAttrs.cpp Model type attributes as regular Attrs. 2018-08-20 21:47:29 +00:00
TransGCCalls.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
TransProperties.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
TransProtectedScope.cpp Port getLocEnd -> getEndLoc 2018-08-09 21:09:38 +00:00
TransRetainReleaseDealloc.cpp Fix clang -Wimplicit-fallthrough warnings across llvm, NFC 2018-11-01 19:54:45 +00:00
TransUnbridgedCasts.cpp Create ConstantExpr class 2018-10-31 03:48:47 +00:00
TransUnusedInitDelegate.cpp
TransZeroOutPropsInDealloc.cpp Remove trailing space 2018-07-30 19:24:48 +00:00
TransformActions.cpp Port getLocStart -> getBeginLoc 2018-08-09 21:08:08 +00:00
Transforms.cpp Create ConstantExpr class 2018-10-31 03:48:47 +00:00
Transforms.h Remove trailing space 2018-07-30 19:24:48 +00:00