diff options
author | Jan Korous <jkorous@apple.com> | 2022-01-28 15:08:45 -0800 |
---|---|---|
committer | Jan Korous <jkorous@apple.com> | 2022-01-28 15:18:49 -0800 |
commit | fad7e491a0770ac4336934030ac67d77e7af5520 (patch) | |
tree | 3f1f6c6cc9d8fc29393979c0557ba5e77007d01d /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | b85ed4e0e1285b0382012366ac54d2e97c84093d (diff) | |
download | llvm-fad7e491a0770ac4336934030ac67d77e7af5520.zip llvm-fad7e491a0770ac4336934030ac67d77e7af5520.tar.gz llvm-fad7e491a0770ac4336934030ac67d77e7af5520.tar.bz2 |
Revert "Add BITINT_MAXWIDTH support"
This reverts commit 86797fdb6f51d32f285e48b6d3e0fc5b8b852734.
Differential Revision: https://reviews.llvm.org/D117238
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index e259ab4..a9023a7 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -25,7 +25,6 @@ #include "clang/Serialization/ASTReader.h" #include "llvm/ADT/APFloat.h" #include "llvm/IR/DataLayout.h" -#include "llvm/IR/DerivedTypes.h" using namespace clang; static bool MacroBodyEndsInBackslash(StringRef MacroBody) { @@ -915,13 +914,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI, Builder.defineMacro("__LONG_WIDTH__", Twine(TI.getLongWidth())); Builder.defineMacro("__LLONG_WIDTH__", Twine(TI.getLongLongWidth())); - size_t BitIntMaxWidth = TI.getMaxBitIntWidth(); - assert(BitIntMaxWidth <= llvm::IntegerType::MAX_INT_BITS && - "Target defined a max bit width larger than LLVM can support!"); - assert(BitIntMaxWidth >= TI.getLongLongWidth() && - "Target defined a max bit width smaller than the C standard allows!"); - Builder.defineMacro("__BITINT_MAXWIDTH__", Twine(BitIntMaxWidth)); - DefineTypeSize("__SCHAR_MAX__", TargetInfo::SignedChar, TI, Builder); DefineTypeSize("__SHRT_MAX__", TargetInfo::SignedShort, TI, Builder); DefineTypeSize("__INT_MAX__", TargetInfo::SignedInt, TI, Builder); |