17#include "llvm/ADT/DenseMapInfo.h"
18#include "llvm/ADT/FoldingSet.h"
19#include "llvm/ADT/StringRef.h"
20#include "llvm/Support/Compiler.h"
21#include "llvm/Support/MemoryBuffer.h"
22#include "llvm/Support/raw_ostream.h"
38 OS << Message <<
'\n';
45static_assert(std::is_trivially_destructible_v<SourceLocation>,
46 "SourceLocation must be trivially destructible because it is "
49static_assert(std::is_trivially_destructible_v<SourceRange>,
50 "SourceRange must be trivially destructible because it is "
54 return llvm::DenseMapInfo<UIntTy>::getHashValue(ID);
64 OS <<
"<invalid loc>";
81 SM.getExpansionLoc(*this).print(OS,
SM);
84 SM.getSpellingLoc(*this).print(OS,
SM);
88LLVM_DUMP_METHOD std::string
91 llvm::raw_string_ostream OS(S);