Made the mechanism of defining preprocessor defs for maxint, ptrdiff_t, wchar
etc more generic. For some targets, long may not be equal to pointer size. For example: PIC16 has int as i16, ptr as i16 but long as i32. Also fixed a few build warnings in assert() functions in CFRefCount.cpp, CGDecl.cpp, SemaDeclCXX.cpp and ParseDeclCXX.cpp. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58501 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/TargetInfo.h 21 additions, 1 deletioninclude/clang/Basic/TargetInfo.h
- lib/Analysis/CFRefCount.cpp 1 addition, 1 deletionlib/Analysis/CFRefCount.cpp
- lib/Basic/TargetInfo.cpp 5 additions, 0 deletionslib/Basic/TargetInfo.cpp
- lib/Basic/Targets.cpp 10 additions, 4 deletionslib/Basic/Targets.cpp
- lib/CodeGen/CGDecl.cpp 1 addition, 1 deletionlib/CodeGen/CGDecl.cpp
- lib/Lex/Preprocessor.cpp 61 additions, 34 deletionslib/Lex/Preprocessor.cpp
- lib/Parse/ParseDeclCXX.cpp 4 additions, 4 deletionslib/Parse/ParseDeclCXX.cpp
- lib/Sema/SemaDeclCXX.cpp 1 addition, 1 deletionlib/Sema/SemaDeclCXX.cpp
Loading
Please register or sign in to comment