llvm.org GIT mirror llvm / d33b276
Tidy up. Whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138767 91177308-0d34-0410-b5e6-96231b3b80d8 Jim Grosbach 9 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
1717 namespace llvm {
1818
1919 // SMLoc - Represents a location in source code.
20 class SMLoc {
20 class SMLoc {
2121 const char *Ptr;
2222 public:
2323 SMLoc() : Ptr(0) {}
2424 SMLoc(const SMLoc &RHS) : Ptr(RHS.Ptr) {}
25
25
2626 bool isValid() const { return Ptr != 0; }
27
27
2828 bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
2929 bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
30
30
3131 const char *getPointer() const { return Ptr; }
32
32
3333 static SMLoc getFromPointer(const char *Ptr) {
3434 SMLoc L;
3535 L.Ptr = Ptr;