1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

Explicitly include <cassert> when using assert

Depending on the OS used, a module-enabled build can fail due to the
special handling <cassert> gets as textual header.
This commit is contained in:
Joerg Sonnenberger 2020-03-02 18:24:11 +01:00
parent 29c6f36324
commit 633e2c035f
15 changed files with 15 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include "llvm/ADT/APSInt.h" #include "llvm/ADT/APSInt.h"
#include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -6,6 +6,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/Support/FormatVariadic.h" #include "llvm/Support/FormatVariadic.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -18,6 +18,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/ADT/IntEqClasses.h" #include "llvm/ADT/IntEqClasses.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -11,6 +11,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/ADT/IntervalMap.h" #include "llvm/ADT/IntervalMap.h"
#include <cassert>
namespace llvm { namespace llvm {
namespace IntervalMapImpl { namespace IntervalMapImpl {

View File

@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/Support/KnownBits.h" #include "llvm/Support/KnownBits.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -22,6 +22,7 @@
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include <atomic> #include <atomic>
#include <cassert>
#include <cstdarg> #include <cstdarg>
#include <cstdio> #include <cstdio>
#include <tuple> #include <tuple>

View File

@ -14,6 +14,7 @@
#include "llvm/ADT/SmallVector.h" #include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Twine.h" #include "llvm/ADT/Twine.h"
#include <cassert>
#include <string> #include <string>
// Important this comes last because it defines "_REGEX_H_". At least on // Important this comes last because it defines "_REGEX_H_". At least on

View File

@ -12,6 +12,7 @@
#include "llvm/Support/StringPool.h" #include "llvm/Support/StringPool.h"
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -14,6 +14,7 @@
#include "llvm/Support/Host.h" #include "llvm/Support/Host.h"
#include "llvm/Support/SwapByteOrder.h" #include "llvm/Support/SwapByteOrder.h"
#include "llvm/Support/TargetParser.h" #include "llvm/Support/TargetParser.h"
#include <cassert>
#include <cstring> #include <cstring>
using namespace llvm; using namespace llvm;

View File

@ -12,6 +12,7 @@
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "llvm/Support/VersionTuple.h" #include "llvm/Support/VersionTuple.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -13,6 +13,7 @@
#include "llvm/TableGen/TableGenBackend.h" #include "llvm/TableGen/TableGenBackend.h"
#include "llvm/ADT/Twine.h" #include "llvm/ADT/Twine.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -16,6 +16,7 @@
#include "llvm/Support/MachineValueType.h" #include "llvm/Support/MachineValueType.h"
#include "llvm/Support/TypeSize.h" #include "llvm/Support/TypeSize.h"
#include <cassert>
namespace llvm { namespace llvm {

View File

@ -12,6 +12,7 @@
#include "PPCMCAsmInfo.h" #include "PPCMCAsmInfo.h"
#include "llvm/ADT/Triple.h" #include "llvm/ADT/Triple.h"
#include <cassert>
using namespace llvm; using namespace llvm;

View File

@ -12,6 +12,7 @@
#define LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H #define LLVM_UTILS_TABLEGEN_CODEGENHWMODES_H
#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringMap.h"
#include <cassert>
#include <map> #include <map>
#include <string> #include <string>
#include <vector> #include <vector>

View File

@ -16,6 +16,7 @@
#include "llvm/ADT/StringRef.h" #include "llvm/ADT/StringRef.h"
#include "llvm/Support/MachineValueType.h" #include "llvm/Support/MachineValueType.h"
#include "llvm/Support/SMLoc.h" #include "llvm/Support/SMLoc.h"
#include <cassert>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>