hanchenye-llvm-project/clang/lib
Douglas Gregor d32f035267 Introduce a global bit-offset continuous range map into the ASTReader,
so that we have one, simple way to map from global bit offsets to
local bit offsets. Eliminates a number of loops over the chain, and
generalizes for more interesting bit remappings.

Also, as an amusing oddity, we were computing global bit offsets
*backwards* for preprocessed entities (e.g., the directly included PCH
file in the chain would start at offset zero, rather than the original
PCH that occurs first in translation unit). Even more amusingly, it
made precompiled preambles work, because we were forgetting to adjust
the local bit offset to a global bit offset when storing preprocessed
entity offsets in the ASTUnit. Two wrongs made a right, and now
they're both right.

llvm-svn: 135750
2011-07-22 06:10:01 +00:00
..
ARCMigrate now that we have a centralized place to do so, add some using declarations for 2011-07-20 06:58:45 +00:00
AST Move this ObjCImplementationDecl member function into libAST 2011-07-22 04:15:06 +00:00
Analysis Move duplicate uninitialized warning suppression into the 2011-07-22 05:27:52 +00:00
Basic Define the _MIPS_SIM builtin macro on MIPS platforms. Patch by Robert Millan! 2011-07-21 15:10:57 +00:00
CodeGen In ARC, non-atomic getters do not need to retain and autorelease 2011-07-22 05:23:13 +00:00
Driver Avoid warning on "clang -c -Dfoo test.i". Lines like these are created 2011-07-21 23:40:37 +00:00
Frontend For ASTUnit::Save, write the AST to a temporary and then rename it to the actual filename. 2011-07-21 18:44:49 +00:00
FrontendTool [arcmt] Add some additional driver flags to optionally emit or save the pre-migration ARC errors. 2011-07-19 17:20:03 +00:00
Headers Fix typo. 2011-07-19 08:48:08 +00:00
Index now that we have a centralized place to do so, add some using declarations for 2011-07-20 06:58:45 +00:00
Lex Rework the detailed preprocessing record to separate preprocessing 2011-07-21 00:47:40 +00:00
Parse PR10392: "#pragma GCC visibility" must not expand macros in its 2011-07-20 01:03:50 +00:00
Rewrite Switch a comment in Rewrite from 'instantiation' to 'expansion'. 2011-07-15 00:04:40 +00:00
Sema Move duplicate uninitialized warning suppression into the 2011-07-22 05:27:52 +00:00
Serialization Introduce a global bit-offset continuous range map into the ASTReader, 2011-07-22 06:10:01 +00:00
StaticAnalyzer In Objective-C, pull arbitrary attributes from overridden 2011-07-22 02:45:48 +00:00
CMakeLists.txt The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00
Makefile The ARC Migration Tool. All the credit goes to Argyrios and Fariborz 2011-06-15 23:25:17 +00:00