15 #ifndef LLVM_SUPPORT_SMLOC_H
16 #define LLVM_SUPPORT_SMLOC_H
28 bool isValid()
const {
return Ptr !=
nullptr; }
54 "Start and end should either both be valid or both be invalid!");
Represents a range in source code.
const char * getPointer() const
bool operator==(const SMLoc &RHS) const
bool operator!=(const SMLoc &RHS) const
SMRange(SMLoc St, SMLoc En)
static SMLoc getFromPointer(const char *Ptr)
Represents a location in source code.