|
Get ICU 4.6 to be compiled without RTTI.
This is a throw-away CL.
- Add two macros, CR_DYNAMIC_CAST and CR_TYPEID to utypes.h
- Replaces dynamic_cast with CR_DYNAMIC_CAST, which is defined as 'static_cast'
- Replaced typeid(o) with CR_TYPEID(o),
which is defined as '((o).getDynamicClassID())'
- Manually fix up three files (calendar.cpp, ucal.cpp and translit.cpp) where
blindly replacing typeid with CR_TYPE id and dynamic_cast with
CR_DYNAMIC_CAST doesn't work.
With this CL, Chrome will be built without enabling RTTI for ICU and the size
of chrome will be compared with that of chrome built with the unpatched ICU
and RTTI enabled.
See http://codereview.chromium.org/6484008/ for more details.
BUG= 61514
TEST=Chrome can be built without RTTI enabled.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+164 lines, -183 lines) |
Patch |
 |
M |
third_party/icu/public/common/unicode/utypes.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/normalizer2.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/rbbi.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/schriter.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/serv.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/uchriter.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/uniset_props.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/ustrenum.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/basictz.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/brktrans.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/calendar.cpp
|
View
|
1
2
|
6 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/coll.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/currfmt.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/currunit.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/dtitvfmt.cpp
|
View
|
1
2
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/dtptngen.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/dtrule.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/fmtable.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/format.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/measure.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/msgfmt.cpp
|
View
|
|
7 chunks |
+11 lines, -11 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/nfsubs.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/numfmt.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/olsontz.cpp
|
View
|
1
2
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/rbnf.cpp
|
View
|
1
2
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/rbtz.cpp
|
View
|
1
2
|
4 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/reldtfmt.cpp
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/selfmt.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/simpletz.cpp
|
View
|
1
2
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/smpdtfmt.cpp
|
View
|
|
5 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tblcoll.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/timezone.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tmunit.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tmutfmt.cpp
|
View
|
1
2
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/translit.cpp
|
View
|
1
2
|
5 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tzrule.cpp
|
View
|
1
2
|
9 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tztrans.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/ucal.cpp
|
View
|
1
2
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/udat.cpp
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/unum.cpp
|
View
|
|
16 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/vtzone.cpp
|
View
|
1
2
|
5 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/zstrfmt.cpp
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/caltest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/citrtest.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/dtfmapts.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/dtfmttst.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/icusvtst.cpp
|
View
|
1
2
|
6 chunks |
+7 lines, -8 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/intltest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/loctest.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/nmfmtrt.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/numfmtst.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/numrgts.cpp
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/pptest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/rbbitst.cpp
|
View
|
1
2
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/tzregts.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/tztest.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/uobjtest.cpp
|
View
|
1
2
|
2 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/tools/toolutil/xmlparser.cpp
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|