Argyrios Kyrtzidis
082e4613eb
Refactoring; move the functionality of ASTWriter::GetOrCreateTypeID to the more generic
...
MakeTypeID template function which accepts a type and a function object that returns a TypeIdx.
MakeTypeID is in PCHCommon.h so that it can be used by ASTReader too.
llvm-svn: 111634
2010-08-20 16:04:20 +00:00
Argyrios Kyrtzidis
9ab44ea6bd
Introduce ASTWriter::GetOrCreateTypeID and move most of the functionality of AddTypeRef there.
...
No functionality change.
llvm-svn: 111633
2010-08-20 16:04:14 +00:00
Argyrios Kyrtzidis
e394f2ca8b
A bit of refactoring; Introduce ASTWriter::GetOrCreateTypeIdx and move the emission of types there.
...
No functionality change.
llvm-svn: 111632
2010-08-20 16:04:09 +00:00
Argyrios Kyrtzidis
a7fbbb0546
Rename TypeIDs -> TypeIdxs. No functionality change.
...
llvm-svn: 111631
2010-08-20 16:04:04 +00:00
Argyrios Kyrtzidis
bb5c7eae4c
serialization::TypeID is used with or without qualifiers, both as index and as index + qualifiers.
...
Disambiguate and provide some type safety by using a new class TypeIdx for the "TypeID as index" semantics.
llvm-svn: 111630
2010-08-20 16:03:59 +00:00
Argyrios Kyrtzidis
4bd97102e9
Share the common code of ComputeHash(Selector Sel) instead of keeping 2 copies in PCHReader and PCHWriter.
...
No functionality change.
llvm-svn: 111629
2010-08-20 16:03:52 +00:00
Sebastian Redl
539c506152
Rename pch namespace to serialization.
...
llvm-svn: 111478
2010-08-18 23:57:32 +00:00
Sebastian Redl
f164204baa
Rename stuff in PCHBitCodes.h
...
llvm-svn: 111475
2010-08-18 23:57:22 +00:00
Sebastian Redl
f5b1346738
Rename the ASTReader header files.
...
llvm-svn: 111474
2010-08-18 23:57:17 +00:00
Sebastian Redl
d44cd6adba
More PCH -> AST renaming.
...
llvm-svn: 111472
2010-08-18 23:57:06 +00:00
Sebastian Redl
2c499f6561
Rename PCHReader to ASTReader.
...
llvm-svn: 111467
2010-08-18 23:56:43 +00:00
Sebastian Redl
1914c6fef8
Rename PCHWriter.h to ASTWriter.h
...
llvm-svn: 111466
2010-08-18 23:56:37 +00:00
Sebastian Redl
d6522cfc6d
Rename the ASTWriter implementation files
...
llvm-svn: 111465
2010-08-18 23:56:31 +00:00